On Thu, Jul 30, 2009 at 01:03:19AM -0700, Peter Memishian wrote:

> 
> While I generally try to limit my use of "hg log" to focused queries
> (e.g., -k <bugid>), there are times when I need to dig through the history
> with "hg log | less" to find a specific integration of interest.  However,
> with hg 1.1.2 on a local clone of onnv-gate this ends up being unusable.
> 
> In particular, the first few pages of output show up in a sluggish-but-
> tolerable 10-15 seconds.  However, as I page further through the history,
> the stalls more than double at each instance: first 45 seconds, then
> 1m22s, then 3m04s, etc.  During these stalls, prstat shows "hg" on-cpu the
> whole time but truss shows little going on (just some periodic examination
> of .hg/store/00changelog.d), so I presume it's cpu-bound in an inefficient
> algorithm, but I'm unsure how to debug this further (in Python).
> 
> Has anyone else experienced this?

Is this on the entire gate (not specifying a file)?  I'm not seeing this on
my machine, but it's a pretty nice one.  Even over NFS (/ws/onnv-clone), I
can page through the history about as fast as I can hit the space bar.

Mercurial has some profiling built in.  It can use the native Python
profiler if you specify --profile before the subcommand, and there's an
--lsprof flag as well, but that will likely point you at extra software to
download.

Danek
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to