Flushes any buffered data out to all connected Managers before the application exits. Calling this function ensures that any partial summary blocks get recorded and guarantees that the final gathered performance data will not be lost. However, it is not necessary for the application to directly call shutdown, as the destructor for the Listener object indirectly calls shutdown.
CAUTION 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 will be lost, but there will be no other negative consequences.
void shutdown(void);
Listener *listener = new Listener("sampleApp", "4.0",
NULL, false);
listener->shutdown();
...