Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24808 - A script shows how long time it took to emerge packages.
Summary: A script shows how long time it took to emerge packages.
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-19 07:53 UTC by HAGIHARA Yoshiaki
Modified: 2004-03-18 00:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pkg-time - Show how long time it took to emerge packages. (pkg-time,6.78 KB, text/plain)
2003-07-19 07:54 UTC, HAGIHARA Yoshiaki
Details
pkg-time - Show how long time it took to emerge packages. (pkg-time,6.78 KB, text/plain)
2003-07-19 07:54 UTC, HAGIHARA Yoshiaki
Details
fixed a bit (pkg-time,6.78 KB, text/plain)
2003-07-29 12:20 UTC, HAGIHARA Yoshiaki
Details
emerge.log.bz2 (emerge.log.bz2,14.41 KB, application/octet-stream)
2003-07-30 14:45 UTC, Shaun Guth
Details
A patch for splat (splat.patch,7.92 KB, patch)
2003-08-01 02:30 UTC, HAGIHARA Yoshiaki
Details | Diff
Gentoo::Ebuild (Ebuild.pm,8.07 KB, text/plain)
2003-08-01 02:34 UTC, HAGIHARA Yoshiaki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HAGIHARA Yoshiaki 2003-07-19 07:53:23 UTC
I wrote a perl script that shows how long time it
took to emerge packages by parsing the log file
(/var/log/emerge.log).

It may be useful when you emerge big packages like
mozilla or xfree.

Reproducible: Always
Steps to Reproduce:
Comment 1 HAGIHARA Yoshiaki 2003-07-19 07:54:27 UTC
Created attachment 14704 [details]
pkg-time - Show how long time it took to emerge packages.

This script shows how long time it took to emerge packages by parsing the log
file (typically /var/log/emerge.log).

You can sort result by package name, emerged date or time took to emerge.

Type pkg-time -h for detail.
Comment 2 HAGIHARA Yoshiaki 2003-07-19 07:54:55 UTC
Created attachment 14705 [details]
pkg-time - Show how long time it took to emerge packages.

This script shows how long time it took to emerge packages by parsing the log
file (typically /var/log/emerge.log).

You can sort result by package name, emerged date or time took to emerge.

Type pkg-time -h for detail.
Comment 3 HAGIHARA Yoshiaki 2003-07-19 07:59:05 UTC
I'm sorry I submitted same file twice.
I submitted twice because the following error was displayed:

Status: 400 Bad request (malformed multipart POST) Content-type: text/html
Software error:

Undefined subroutine &main::ThrowCodeError called at Bugzilla/CGI.pm line 78.

For help, please send mail to the webmaster (webmaster@gentoo.org), giving this error message and the time and date of the error.
Content-type: text/html
Software error:

[Sat Jul 19 07:54:55 2003] processmail: Undefined subroutine &main::ThrowCodeError called at Bugzilla/CGI.pm line 78.
Compilation failed in require at ./processmail line 31.

For help, please send mail to the webmaster (webmaster@gentoo.org), giving this error message and the time and date of the error. 
Comment 4 HAGIHARA Yoshiaki 2003-07-29 12:16:33 UTC
Well, fixed a bug parsing package names like mysql++ or bonnie++.

BTW nobody is interested in this script?
Comment 5 HAGIHARA Yoshiaki 2003-07-29 12:20:59 UTC
Created attachment 15193 [details]
fixed a bit
Comment 6 Shaun Guth 2003-07-30 14:41:45 UTC
Might want to check out the 'splat' package (in portage already (v0.6 as of this writing)) which does a similar job
Comment 7 Shaun Guth 2003-07-30 14:45:09 UTC
Created attachment 15244 [details]
emerge.log.bz2 

l8nite@dell l8nite $ splat mozilla
 * net-www/mozilla-1.4-r2
 
	Emerged at: Tue Jul 29 09:34:59 2003
	Build time: 57 minutes, and 1 second
 
l8nite@dell l8nite $ perl pkg-time.pl mozilla
No match!

Attached emerge logfile for debugging purposes
Comment 8 HAGIHARA Yoshiaki 2003-08-01 02:30:40 UTC
Created attachment 15309 [details, diff]
A patch for splat

I found splat several days ago.
Now I know why there were no reaction :)

Avoiding to reinvent the wheel, I added sorting routines and others that
pkg-time features.

And I extracted the Gentoo::Ebuild class from pkg-time.
It may help Perl guys to write utilities for Gentoo (or not).
Comment 9 HAGIHARA Yoshiaki 2003-08-01 02:34:14 UTC
Created attachment 15310 [details]
Gentoo::Ebuild

This is a simple Perl class to handle ebuilds of Gentoo Linux.

Place this file to the directory like /usr/lib/perl5/site_perl/5.8.0/Gentoo.
Comment 10 Marius Mauch (RETIRED) gentoo-dev 2004-01-08 18:37:04 UTC
Shaun, I'll leave it to you if you use the patch or not for splat (= I won't add it to the ebuild). 
Hagihara, I'm not touching the dev-perl area, if you think the class is useful file a new bug for the perl team.
Comment 11 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-18 00:28:29 UTC
There is also genlop:

$ genlop -t mozilla
[...]
     Thu Nov 27 20:01:02 2003 --> net-www/mozilla-1.5-r1
       merge time: 2 hours, 5 minutes, and 56 seconds.

     Sat Feb  7 14:40:25 2004 --> net-www/mozilla-1.6
       merge time: 1 hour, 24 minutes, and 28 seconds.

     Tue Mar  9 14:12:45 2004 --> net-www/mozilla-1.6-r1
       merge time: 1 hour, 31 minutes, and 7 seconds.

 
 merged totally 13 ebuilds in 23 hours, 47 minutes, and 16 seconds. 
 average merge time: 1 hour, 49 minutes, and 47 seconds.
$