[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add option to collect statprof data of compilation

From: Freja Nordsiek
Subject: [PATCH] Add option to collect statprof data of compilation
Date: Sun, 26 Mar 2017 13:19:45 +0200

I got curious about the performance details of the compiler tower and
had to augment guild compile and compile-file in (system base compile)
to look at it. I added an option to collect statistical profiling data
with the statprof module and write a the data to a file (in flat
format). Figured the addition might be useful for anyone trying to
improve the performance of one of the compilers at some point (say,
someone adding a new language compiler to guile).

One accesses it with guild compile using the -s or --stats option. For example,

    guild compile -s SFILE foo.scm

And in the compile-file procedure with a new keyword parameter #:stats-file

The patch is attached. Note, collecting all the right output to put in
the file requires the patch for bug #26172
( Otherwise, the
last three lines of the statprof flat profile get written to
(current-output-port) instead of to the file.

Freja Nordsiek

Attachment: 0001-Add-option-to-collect-and-write-statprof-data-of-com.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]