shutdown Member Function

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 ensures that the final gathered performance data is saved. 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 that was being added to the current summary block can be lost, but there are no other negative consequences.

Syntax

void shutdown(void);

Parameters

None.

Example

Listener *listener = new Listener("sampleApp", "4.0", NULL, false);
listener->shutdown();
...

See Also