[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Add --statistics option to gtags
From: |
Hideki IWAMOTO |
Subject: |
[PATCH] Add --statistics option to gtags |
Date: |
Wed, 18 Nov 2009 19:18:02 +0900 |
Hi.
This patch add --statistics option to gtags.
The output is as follows.
$ foreach cpumask ( 1 3 )
foreach? foreach label ( gtags gtags-2pass )
foreach? echo ==== cpumask:$cpumask label:$label ====
foreach? rm -fr linux-2.6.31; tar xfj ~/download/linux/linux-2.6.31.tar.bz2;
sync
foreach? (cd linux-2.6.31; env GTAGSLABEL=$label taskset $cpumask gtags
--statistics)
foreach? end
foreach? end
==== cpumask:1 label:gtags ====
period user[sec] system[sec] elapsed[sec] %CPU
----------------------- --------- ----------- ------------ ----
Time of creating GTAGS 17.237 2.876 25.743 78.1
Time of creating GRTAGS 52.967 6.900 68.607 87.3
Time of creating GSYMS 46.519 6.328 57.816 91.4
----------------------- --------- ----------- ------------ ----
The entire time 116.723 16.105 152.166 87.3
==== cpumask:1 label:gtags-2pass ====
period user[sec] system[sec] elapsed[sec] %CPU
--------------------------------- --------- ----------- ------------ ----
Time of creating GTAGS 17.349 2.836 25.707 78.5
Time of creating GRTAGS and GSYMS 75.681 8.137 92.310 90.8
--------------------------------- --------- ----------- ------------ ----
The entire time 93.030 10.973 118.018 88.1
==== cpumask:3 label:gtags ====
period user[sec] system[sec] elapsed[sec] %CPU
----------------------- --------- ----------- ------------ -----
Time of creating GTAGS 16.909 2.868 24.126 82.0
Time of creating GRTAGS 51.471 6.768 58.139 100.2
Time of creating GSYMS 45.807 6.076 51.598 100.6
----------------------- --------- ----------- ------------ -----
The entire time 114.187 15.713 133.863 97.0
==== cpumask:3 label:gtags-2pass ====
period user[sec] system[sec] elapsed[sec] %CPU
--------------------------------- --------- ----------- ------------ -----
Time of creating GTAGS 17.217 2.804 24.136 83.0
Time of creating GRTAGS and GSYMS 73.109 7.468 66.939 120.4
--------------------------------- --------- ----------- ------------ -----
The entire time 90.326 10.273 91.074 110.5
Diffstat:
gtags/gtags.c | 12 +++++++++++-
gtags/manual.in | 3 +++
2 files changed, 14 insertions(+), 1 deletion(-)
----
Hideki IWAMOTO address@hidden
20091116-gtags-statistics.patch
Description: Binary data
- [PATCH] Add --statistics option to gtags,
Hideki IWAMOTO <=