Shutting Down the Application

When the application is going to exit, it can call the shutdown member function of the Listener to record any partial summary blocks and ensure that the final gathered performance data is not lost:

listener->shutdown();

However, it is not necessary for the application to directly call shutdown, as the destructor for the Listener object indirectly calls shutdown.

Attention: If the application exits without calling either the destructor of the Listener or the shutdown function, then the most recent performance data, which was being added to the current summary block can be lost, but there are no other negative consequences.