git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GIT_TRACE_PERFORMANCE and pager

From
Jeff King <peff@peff.net>
Date
Feb 29, 2016, 21:30 UTC
Message-ID
<20160229213026.GB25342@sigill.intra.peff.net>
In-Reply-To
<CAP8UFD30fWvFPtSgY_6mVMCeQ9rMR-0EODaKbZdMmz_fo-qfKw@mail.gmail.com>
On Mon, Feb 29, 2016 at 02:46:12PM +0100, Christian Couder wrote:
Show 8 quoted lines
> > though I guess I'd question whether trace-performance is interesting at
> > all for a paged command, since it is also counting the length of time
> > you spend looking at the pager waiting to hit "q".
> 
> In case of "GIT_TRACE_PERFORMANCE=2 git log -1", it doesn't count the
> time spent looking at the pager because the output is small, so 'less'
> exits immediately, and it could give the impression that
> GIT_TRACE_PERFORMANCE is not working.

Ah, right. I don't use "-F" with less, so mine hangs around until I quit.

-Peff
Previous: Christian CouderNext: Junio C Hamano
Message 4 of 5 in “GIT_TRACE_PERFORMANCE and pager”
  1. Christian CouderFeb 29, 2016
  2. Jeff KingFeb 29, 2016
  3. Christian CouderFeb 29, 2016
  4. Jeff KingFeb 29, 2016
  5. Junio C HamanoFeb 29, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.