php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /var/www/html/sub/images/sym/root/usr/share/doc/systemtap-client-2.9/examples/profiling/ |
files >> /var/www/html/sub/images/sym/root/usr/share/doc/systemtap-client-2.9/examples/profiling/fntimes.stp |
#!/usr/bin/stap # usage: fntimes.stp FUNCTIONPROBE # e.g. fntimes.stp 'module("ext4").function("*")' global mincount = 100 # training: beneath this number of hits, only collect data global note_percent = 250 # percent beyond maximum-so-far to generate report for function time() { return gettimeofday_us() } # time measurement function global times function check(t) # t: elapsed time { if (@count(times[ppfunc()]) >= mincount && t >= @max(times[ppfunc()]) * note_percent / 100) { # also consider @avg() printf("function %s well over %s time (%d vs %d)\n", ppfunc(), "maximum", t, @max(times[ppfunc()])) # also consider: print_backtrace() } times[ppfunc()] <<< t # (increments @count, updates @max) } probe $1.return { check(time()-@entry(time())) }y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`