public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Phil Muldoon <pmuldoon@redhat.com>
To: Mark Wielaard <mark@klomp.org>
Cc: frysk <frysk@sourceware.org>
Subject: Re: a simpler logger [?]
Date: Tue, 12 Feb 2008 12:23:00 -0000	[thread overview]
Message-ID: <47B18FA6.3090507@redhat.com> (raw)
In-Reply-To: <1202818497.3378.8.camel@dijkstra.wildebeest.org>

Mark Wielaard wrote:
> Hi,
>
> While helping Phil figuring out what part of his code was called (over
> and over again) from where we came up with the following small extension
> of the rsl:
>   

This is useful because I can now see what is calling the function,  from 
the rsl log call:

    fine.log(this,"getAuxv()",fine.caller());

produces (from an actual log output) below.

0 00:00:00.086  [{frysk.proc.dead.LinuxCoreProc@2f8ad3b5,pid=18314,state=dead}]: getAuxv() "frysk.dwfl.DwflFactory.VDSOAddressLow(fstack)"


As fine.caller() is an optional call (you have to supply it in the 
arguments), the overhead of the Throwable can be managed by the 
programmer. Personally I find it immensely useful to detect the origin 
of a call. I would like to see it the Log code.

Regards

Phil

  reply	other threads:[~2008-02-12 12:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-07 16:37 Andrew Cagney
2007-12-17 20:05 ` Andrew Cagney
2008-02-11 18:52   ` Andrew Cagney
2008-02-12 12:15     ` Mark Wielaard
2008-02-12 12:23       ` Phil Muldoon [this message]
2008-02-12 13:29         ` Mark Wielaard

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=47B18FA6.3090507@redhat.com \
    --to=pmuldoon@redhat.com \
    --cc=frysk@sourceware.org \
    --cc=mark@klomp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).