Because of the recent project migration, the migration has found that some places have slowed down. Need a good profiler tool to locate the most time-consuming place. In the Taobao Middleware team blog http://rdc.taobao.com/team/jm/found a tprofiler, so try a bit.
The overall use is fairly simple, and the documentation, though not exhaustive, can still be used.
More important is the configuration file, there are several points to note:
The configuration file requires the integrity of all attributes, or it will report "illegalargumentexception source can ' t be null."
Profile.properties has a sample, in the Man/resources directory.
Eachprofusetime = 5 #表示每次profiler的时间, written to Tprofiler.log file once profiler is finished
Eachprofintervaltime = #profiler的间隔
Tprofiler is an online profile tool, the reason why profiler spacing is very large, is to not affect online business. Recommended in the test environment, the Eachprofintervaltime set to 1 or 0,eachprofusetime as much as possible, so that better looking results.
There is also a client, can do Flushmethod and other operations. If you do not actively flush, you will wait until the end of the time period to write Tmethod.log files.
Topmethod and Topobject are more useful and are generated using the following command:
<!--Lang:shell-->
./tprofiler-log-analysis/data/tprofiler/logs/tprofiler.log/data/tprofiler/logs/ Tmethod.log/data/tprofiler/logs/topmethod.log/data/tprofiler/logs/topobject.log