Time spent in method

Questions about YourKit Java Profiler
Post Reply
sofiavergao
Posts: 1
Joined: Tue Oct 31, 2017 8:31 am

Time spent in method

Post by sofiavergao »

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

Re: Time spent in method

Post by Anton Katilin »

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
Post Reply