|
From: Milian W. <ma...@mi...> - 2010-07-16 05:57:09
|
On Friday, 16. July 2010 00:57:37 Josef Weidendorfer wrote: > Hi Milian, > > On Thursday 15 July 2010, Milian Wolff wrote: > > Would the callgrind data allow grouping by thread in KCacheGrind's > > evaluation? Isn't something like > > > > myMethod()'X > > > > indicating the thread number with the X? > > Short explanation of the usage of "'": > A symbol can contain multiple parts specifying some dynamic context, > such as parent stack frames (thus providing the call chain to the > function where the costs happend), or the recursion depth (if X is an > integer). These parts are separated by apostrophes (*). > > While the thread number could be seen as an dynamic context, neither > callgrind is able to use the thread number in this way (ie. to create > symbol names with suffix 'X with X being the thread number), nor > KCachegrind currently would be able to separate profile data by symbol > suffixes. > > But you should be able to reach your goal by using > "--separate-threads=yes". This will ask callgrind to produce multiple > profile dumps, one for each thread. And you can just load the data for > thread 1, for example. > > Does this answer your question? Yes, that sounds perfectly fine to solve my usecase. Thank you! -- Milian Wolff ma...@mi... http://milianw.de |