public static void setProfilingEnabled(boolean enable) {
        // If enabling profiling, call the start method on ProfiledConnection
        if (!profilingEnabled && enable) {
            ProfiledConnection.start();
        }
        // Otherwise, if turning off, call stop method.
        else if (profilingEnabled && !enable) {
            ProfiledConnection.stop();
        }
        profilingEnabled = enable;
    }
Turns connection profiling on or off. You can collect profiling
statistics by using the static methods of the ProfiledConnection
class.

@param enable true to enable profiling; false to disable.
xmppserver/src/main/java/org/jivesoftware/database/DbConnectionManager.java