public synchronized void startCollecting ( ) { paused = false ; if ( thread != null ) return ; packages = new CountMap < String > ( MAX_PACKAGES ) ; selfMethods = new CountMap < String > ( MAX_METHODS ) ; stackMethods = new CountMap < String > ( MAX_METHODS ) ; lines = new CountMap < String > ( MAX_LINES ) ; total = 0 ; started = true ; thread = new Thread ( this ) ; thread . setName ( "Profiler" ) ; thread . setDaemon ( true ) ; thread . start ( ) ; }
Start collecting profiling data .