[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-list
Subject:    Useful opannotate alias
From:       Christopher Layne <clayne () anodized ! com>
Date:       2008-05-03 6:31:44
Message-ID: 20080503063143.GG32000 () ns1 ! anodized ! com
[Download RAW message or body]

If you're like me, you quickly want to find hotspots from opannotate
output without having to search everytime. Useful alias I came up
for this (assuming you have "less" and use bash on your host):

opa() { opannotate \*$@\* -s 2>/dev/null | less -j.25 -qfin -p'[0-9]*[1-9]\.[0-9]+ \
:|/\* .* total: .*+[0-9]*[1-9]\.[0-9]+ \*/'; }

Will auto-highlight/search for lines and function total that yield 1.0 and above
in collected statistics. Additionally the '\*$@\*' allows you to juse type

opa 'libdude' and have it dump only for that module.

-cl

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic