Regarding Oprofile for monitoring sockets API sunctions

View: New views
2 Messages — Rating Filter:   Alert me  

Regarding Oprofile for monitoring sockets API sunctions

by Khan Subayal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Regarding Oprofile for monitoring sockets API sunctions

Dear all,

I just started to use Oprofile since I have to do run time profiling of BSD socket API functions.

My goal is to draw the cumulative impact .i.e., cache hits, misses and load

of these API functions at run time in context of the process they reside in.

I mean only that load which is caused by those calls to API functions made

from within the particular target process.

Then,

A separate graph for the whole of process with the same mentioned performance

concerns.

Then,

of all the processes currently scheduled by kernel excluding the one under test. 

Is this sampling tool suitable for runtime profiling .i.e., as the process is being run these

graphs are being plotted?

Moreover any good manual or tutorial or book for Oprofile?

Best Regards

Subayal Aftab Khan


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
oprofile-list mailing list
oprofile-list@...
https://lists.sourceforge.net/lists/listinfo/oprofile-list

Re: Regarding Oprofile for monitoring sockets API sunctions

by Maynard Johnson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Khan Subayal wrote:

> Dear all,
>
> I just started to use Oprofile since I have to do run time profiling of
> BSD socket API functions.
>
> My goal is to draw the cumulative impact .i.e., cache hits, misses and
> load
> of these API functions at run time in context of the process they reside
> in.
> I mean only that load which is caused by those calls to API functions
> made
> from within the particular target process.
>
> Then,
>
> A separate graph for the whole of process with the same mentioned
> performance
> concerns.
>
> Then,
>
> of all the processes currently scheduled by kernel excluding the one
> under test.
>
> Is this sampling tool suitable for runtime profiling .i.e., as the
> process is being run these
> graphs are being plotted?
Yes, it should be.  Use 'opcontrol --separate=lib,kernel,thread' when setting up
the profiler.  You can find good doc at
http://oprofile.sourceforge.net/doc/index.html.  Pay particular attention to the
section on "Profile specifications" where the tgid and tid specifications are
defined.  Note that when tyring to generate a report from profile data collected
with "separate=thread", opreport will not even try to generate a text-based
report for *all* threads.  It's just too much data to try to display.  But if
you specify a particular app binary on the opreport command line, then it will
generate a report, listing at the top all thread IDs that were running that
binary.  Then you can use that thread info to generate additional
thread-specific reports using the "tid:<tid#>" specification.

-Maynard

>
> Moreover any good manual or tutorial or book for Oprofile?
>
>
> Best Regards
> Subayal Aftab Khan
>
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> oprofile-list mailing list
> oprofile-list@...
> https://lists.sourceforge.net/lists/listinfo/oprofile-list


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
oprofile-list mailing list
oprofile-list@...
https://lists.sourceforge.net/lists/listinfo/oprofile-list