Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

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.

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.
Anton Katilin
Posts: 6064
Joined: Wed Aug 11, 2004 8:37 am

Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest


YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.