Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Time spent in method

Moderators: Vladimir Kondratyev, Anton Katilin

Time spent in method

Postby sofiavergao » Tue Oct 31, 2017 8:38 am

Is there a way to show the time spent in a method not counting the time in called methods? For example the Invocation Tree might show
com.skillsoft.cb.importer.ExcelImporter.importXls(String) 13,029
com.skillsoft.cb.importer.ExcelImporter.importCourses() 8,260
com.skillsoft.cb.hibernate.HibernateCbDao.clearDatabase() 2,411
com.skillsoft.rattler.data...<init>(File) 1,894
com.skillsoft.cb.importer.ExcelImporter.importCategories6() 348

The called methods only add up to 12913 meaning 116 was spent in importXls. This is not the best example; sometimes the difference is greater.

Thanks!
sofiavergao
 
Posts: 1
Joined: Tue Oct 31, 2017 8:31 am

Re: Time spent in method

Postby Anton Katilin » Tue Oct 31, 2017 2:28 pm

Please select the method of interest in the call tree view, then use the "Own time" column in the slave
"Callees list" slave view (the bottom view).

Please also note you may expand method calls collapsed because of applied filters.
https://www.yourkit.com/docs/java/help/filters.jsp
Anton Katilin
 
Posts: 5563
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 1 guest

cron