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

Re: [PATCH] revision: trace topo-walk statistics

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 7, 2021, 01:37 UTC
Message-ID
<xmqqh7nto7ck.fsf@gitster.c.googlers.com>
In-Reply-To
<pull.828.git.1609302714183.gitgitgadget@gmail.com>
"Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 12 quoted lines
> diff --git a/revision.c b/revision.c
> index 9dff845bed6..1bb590ece78 100644
> --- a/revision.c
> +++ b/revision.c
> @@ -3308,6 +3308,26 @@ struct topo_walk_info {
>  	struct author_date_slab author_date;
>  };
>  
> +static int topo_walk_atexit_registered;
> +static unsigned int count_explore_walked;
> +static unsigned int count_indegree_walked;
> +static unsigned int count_topo_walked;

The revision walk machinery is designed to be callable more than once during the lifetime of a process. These make readers wonder if they should be defined in "struct rev_info" to allow stats collected per traversal.

Previous: Derrick Stolee via GitGitGadgetNext: Derrick Stolee
Message 2 of 5 in “revision: trace topo-walk statistics”
  1. revision: trace topo-walk statisticsDerrick Stolee via GitGitGadget, Dec 30, 2020
  2. Junio C HamanoJan 7, 2021
  3. Derrick StoleeJan 7, 2021
  4. Junio C HamanoJan 7, 2021
  5. Derrick StoleeJan 7, 2021

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.