Message ID | 07f7ee46232b4ccc53787fa2e08887b436ee11c3.1646919331.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | A couple of fixes for the Trace2 documentation | expand |
On Thu, Mar 10 2022, Johannes Schindelin via GitGitGadget wrote: > From: Johannes Schindelin <johannes.schindelin@gmx.de> > > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> > --- > Documentation/technical/api-trace2.txt | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt > index bb13ca3db8b..77216eff622 100644 > --- a/Documentation/technical/api-trace2.txt > +++ b/Documentation/technical/api-trace2.txt > @@ -24,7 +24,7 @@ for example. > > Trace2 is controlled using `trace2.*` config values in the system and > global config files and `GIT_TRACE2*` environment variables. Trace2 does > -not read from repo local or worktree config files or respect `-c` > +not read from repo local or worktree config files nor does it respect `-c` Perhaps adding a comma before "nor" would also be a good addition.
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes: > On Thu, Mar 10 2022, Johannes Schindelin via GitGitGadget wrote: > >> From: Johannes Schindelin <johannes.schindelin@gmx.de> >> >> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> >> --- >> Documentation/technical/api-trace2.txt | 14 +++++++------- >> 1 file changed, 7 insertions(+), 7 deletions(-) >> >> diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt >> index bb13ca3db8b..77216eff622 100644 >> --- a/Documentation/technical/api-trace2.txt >> +++ b/Documentation/technical/api-trace2.txt >> @@ -24,7 +24,7 @@ for example. >> >> Trace2 is controlled using `trace2.*` config values in the system and >> global config files and `GIT_TRACE2*` environment variables. Trace2 does >> -not read from repo local or worktree config files or respect `-c` >> +not read from repo local or worktree config files nor does it respect `-c` > > Perhaps adding a comma before "nor" would also be a good addition. Yup, that sounds sensible. All other hunks looked good, too. Thanks, both.
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes: > @@ -34,8 +34,8 @@ Format details are given in a later section. > > === The Normal Format Target > > -The normal format target is a tradition printf format and similar > -to GIT_TRACE format. This format is enabled with the `GIT_TRACE2` > +The normal format target is a traditional printf format and similar > +to the GIT_TRACE format. This format is enabled with the `GIT_TRACE2` In the same spirit as [2/4] and match the part that [4/4] touches, this probably is better: The normal format target is a traditional `printf()` format and similar to the `GIT_TRACE` format. This format is enabled with the `GIT_TRACE2`
diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt index bb13ca3db8b..77216eff622 100644 --- a/Documentation/technical/api-trace2.txt +++ b/Documentation/technical/api-trace2.txt @@ -24,7 +24,7 @@ for example. Trace2 is controlled using `trace2.*` config values in the system and global config files and `GIT_TRACE2*` environment variables. Trace2 does -not read from repo local or worktree config files or respect `-c` +not read from repo local or worktree config files nor does it respect `-c` command line config settings. == Trace2 Targets @@ -34,8 +34,8 @@ Format details are given in a later section. === The Normal Format Target -The normal format target is a tradition printf format and similar -to GIT_TRACE format. This format is enabled with the `GIT_TRACE2` +The normal format target is a traditional printf format and similar +to the GIT_TRACE format. This format is enabled with the `GIT_TRACE2` environment variable or the `trace2.normalTarget` system or global config setting. @@ -635,7 +635,7 @@ process may be a shell script which doesn't have a session-id.) + This event is generated after the child is started in the background and given a little time to boot up and start working. If the child -startups normally and while the parent is still waiting, the "ready" +starts up normally while the parent is still waiting, the "ready" field will have the value "ready". If the child is too slow to start and the parent times out, the field will have the value "timeout". @@ -949,7 +949,7 @@ atexit elapsed:3.868970 code:0 Regions:: - Regions can be use to time an interesting section of code. + Regions can be used to time an interesting section of code. + ---------------- void wt_status_collect(struct wt_status *s) @@ -1103,9 +1103,9 @@ Thread Events:: Thread messages added to a thread-proc. + -For example, the multithreaded preload-index code can be +For example, the multi-threaded preload-index code can be instrumented with a region around the thread pool and then -per-thread start and exit events within the threadproc. +per-thread start and exit events within the thread-proc. + ---------------- static void *preload_thread(void *_data)