public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Roy Jacobson <roi.jacobson1@gmail.com>
To: gcc@gcc.gnu.org
Subject: A plugin for -ftime-trace like tracing in GCC
Date: Tue, 21 Feb 2023 18:30:15 +0200	[thread overview]
Message-ID: <CACpPL6umTzvPfGcaVebWuxOvqi5A11+VcNo3RmDiHQJ+NFwkuQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 476 bytes --]

There were some discussions here about -ftime-trace. I've written a GCC
plugin with similar functionality last year:
https://github.com/royjacobson/externis. It works at least on GCC11 and
GCC12.
It was written by practically reverse engineering the GCC AST and can only
make use of the GCC plugin callbacks, which are very limited, so the
information it provides is sometimes inaccurate and heuristic. But maybe it
can help by providing something to iterate on.

Cheers,
Roy

                 reply	other threads:[~2023-02-21 16:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CACpPL6umTzvPfGcaVebWuxOvqi5A11+VcNo3RmDiHQJ+NFwkuQ@mail.gmail.com \
    --to=roi.jacobson1@gmail.com \
    --cc=gcc@gcc.gnu.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).