mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Fixed bug: statprof flat display wasn't writing summary lines to port
* module/statprof.scm (statprof-display/flat): fixed bug where summary lines were written to (current-output-port) instead of the provided port.
This commit is contained in:
parent
93b2bfd822
commit
a7428a3172
1 changed files with 2 additions and 2 deletions
|
@ -652,8 +652,8 @@ optional @var{port} argument is passed, uses the current output port."
|
||||||
(for-each display-stats-line sorted-stats)
|
(for-each display-stats-line sorted-stats)
|
||||||
|
|
||||||
(display "---\n" port)
|
(display "---\n" port)
|
||||||
(format #t "Sample count: ~A\n" (statprof-sample-count state))
|
(format port "Sample count: ~A\n" (statprof-sample-count state))
|
||||||
(format #t "Total time: ~A seconds (~A seconds in GC)\n"
|
(format port "Total time: ~A seconds (~A seconds in GC)\n"
|
||||||
(statprof-accumulated-time state)
|
(statprof-accumulated-time state)
|
||||||
(/ (gc-time-taken state)
|
(/ (gc-time-taken state)
|
||||||
1.0 internal-time-units-per-second))))))
|
1.0 internal-time-units-per-second))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue