Looks like a compression tester. You take out all the spark plugs and push the rubber tip into each spark plug hole and spin the engine over, with the throttle wide open, until the needle on the gauge won't rise any further. Repeat on all cylinders to get a good idea of the state of the bores and piston rings.