All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Brian Hughner <brh@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Can I profile a Xenomai app?
Date: Sun, 11 Jun 2006 14:49:11 +0200	[thread overview]
Message-ID: <17548.4423.616939.905643@domain.hid> (raw)
In-Reply-To: <4489C553.2040502@domain.hid>

Brian Hughner wrote:
 > Hi!
 > 
 > I've been working with Xenomai 2.1 and 2.2 and would like to profile a 
 > daemon that I wrote. Is it possible to profile Xenomai threads in a daemon?

If you are looking for a way to manually instrument your code in order
to measure short time intervals, you may use
clock_gettime(CLOCK_MONOTONIC) with the posix skin, or rt_timer_tsc()
with the native skin.

For a more automated way, have a look at the I-pipe tracer.

If you are able to simulate the low-level part of the daemon you
developed, or if this daemon does not interact too much with hardware,
you may compile this daemon for xenomai simulator, compiled with the
"atomic core" option, and give a try to cachegrind. I do not think
cachegrind will be able to output per-thread results, though.

-- 


					    Gilles Chanteperdrix.


      reply	other threads:[~2006-06-11 12:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-09 19:00 [Xenomai-help] Can I profile a Xenomai app? Brian Hughner
2006-06-11 12:49 ` Gilles Chanteperdrix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17548.4423.616939.905643@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=brh@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.