From oprofile-list Sat May 03 06:31:44 2008 From: Christopher Layne Date: Sat, 03 May 2008 06:31:44 +0000 To: oprofile-list Subject: Useful opannotate alias Message-Id: <20080503063143.GG32000 () ns1 ! anodized ! com> X-MARC-Message: https://marc.info/?l=oprofile-list&m=120979631123383 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