@@ -23,7 +23,7 @@ formats in the future. This might be used to define a binary format,
23
23
for example.
24
24
25
25
Trace2 is controlled using `trace2.*` config values in the system and
26
- global config files and `GIT_TR2 *` environment variables. Trace2 does
26
+ global config files and `GIT_TRACE2 *` environment variables. Trace2 does
27
27
not read from repo local or worktree config files or respect `-c`
28
28
command line config settings.
29
29
@@ -42,7 +42,7 @@ config setting.
42
42
For example
43
43
44
44
------------
45
- $ export GIT_TR2 =~/log.normal
45
+ $ export GIT_TRACE2 =~/log.normal
46
46
$ git version
47
47
git version 2.20.1.155.g426c96fcdb
48
48
------------
@@ -71,13 +71,13 @@ $ cat ~/log.normal
71
71
The performance format target (PERF) is a column-based format to
72
72
replace GIT_TRACE_PERFORMANCE and is suitable for development and
73
73
testing, possibly to complement tools like gprof. This format is
74
- enabled with the `GIT_TR2_PERF ` environment variable or the
74
+ enabled with the `GIT_TRACE2_PERF ` environment variable or the
75
75
`trace2.perfTarget` system or global config setting.
76
76
77
77
For example
78
78
79
79
------------
80
- $ export GIT_TR2_PERF =~/log.perf
80
+ $ export GIT_TRACE2_PERF =~/log.perf
81
81
$ git version
82
82
git version 2.20.1.155.g426c96fcdb
83
83
------------
@@ -104,14 +104,14 @@ $ cat ~/log.perf
104
104
=== The Event Format Target
105
105
106
106
The event format target is a JSON-based format of event data suitable
107
- for telemetry analysis. This format is enabled with the `GIT_TR2_EVENT `
107
+ for telemetry analysis. This format is enabled with the `GIT_TRACE2_EVENT `
108
108
environment variable or the `trace2.eventTarget` system or global config
109
109
setting.
110
110
111
111
For example
112
112
113
113
------------
114
- $ export GIT_TR2_EVENT =~/log.event
114
+ $ export GIT_TRACE2_EVENT =~/log.event
115
115
$ git version
116
116
git version 2.20.1.155.g426c96fcdb
117
117
------------
@@ -273,7 +273,7 @@ significantly affects program performance or behavior, such as
273
273
Emits a "def_param" messages for "important" configuration
274
274
settings.
275
275
+
276
- The environment variable `GIT_TR2_CONFIG_PARAMS ` or the `trace2.configParams`
276
+ The environment variable `GIT_TRACE2_CONFIG_PARAMS ` or the `trace2.configParams`
277
277
config value can be set to a
278
278
list of patterns of important configuration settings, for example:
279
279
`core.*,remote.*.url`. This function will iterate over all config
@@ -465,7 +465,7 @@ Events are written as lines of the form:
465
465
Note that this may contain embedded LF or CRLF characters that are
466
466
not escaped, so the event may spill across multiple lines.
467
467
468
- If `GIT_TR2_BRIEF ` or `trace2.normalBrief` is true, the `time`, `filename`,
468
+ If `GIT_TRACE2_BRIEF ` or `trace2.normalBrief` is true, the `time`, `filename`,
469
469
and `line` fields are omitted.
470
470
471
471
This target is intended to be more of a summary (like GIT_TRACE) and
@@ -533,7 +533,7 @@ This field is in anticipation of in-proc submodules in the future.
533
533
15:33:33.532712 wt-status.c:2331 | d0 | main | region_leave | r1 | 0.127568 | 0.001504 | status | label:print
534
534
------------
535
535
536
- If `GIT_TR2_PERF_BRIEF ` or `trace2.perfBrief` is true, the `time`, `file`,
536
+ If `GIT_TRACE2_PERF_BRIEF ` or `trace2.perfBrief` is true, the `time`, `file`,
537
537
and `line` fields are omitted.
538
538
539
539
------------
@@ -598,7 +598,7 @@ The following key/value pairs are common to all events:
598
598
`"repo":<repo-id>`::
599
599
when present, is the integer repo-id as described previously.
600
600
601
- If `GIT_TR2_EVENT_BRIEF ` or `trace2.eventBrief` is true, the `file`
601
+ If `GIT_TRACE2_EVENT_BRIEF ` or `trace2.eventBrief` is true, the `file`
602
602
and `line` fields are omitted from all events and the `time` field is
603
603
only present on the "start" and "atexit" events.
604
604
@@ -911,7 +911,7 @@ visited.
911
911
The `category` field may be used in a future enhancement to
912
912
do category-based filtering.
913
913
+
914
- `GIT_TR2_EVENT_NESTING ` or `trace2.eventNesting` can be used to
914
+ `GIT_TRACE2_EVENT_NESTING ` or `trace2.eventNesting` can be used to
915
915
filter deeply nested regions and data events. It defaults to "2".
916
916
917
917
`"region_leave"`::
@@ -1039,8 +1039,8 @@ rev-list, and gc. This example also shows that fetch took
1039
1039
5.199 seconds and of that 4.932 was in ssh.
1040
1040
+
1041
1041
----------------
1042
- $ export GIT_TR2_BRIEF =1
1043
- $ export GIT_TR2 =~/log.normal
1042
+ $ export GIT_TRACE2_BRIEF =1
1043
+ $ export GIT_TRACE2 =~/log.normal
1044
1044
$ git fetch origin
1045
1045
...
1046
1046
----------------
@@ -1075,8 +1075,8 @@ its name as "gc", it also reports the hierarchy as "fetch/gc".
1075
1075
indented for clarity.)
1076
1076
+
1077
1077
----------------
1078
- $ export GIT_TR2_BRIEF =1
1079
- $ export GIT_TR2 =~/log.normal
1078
+ $ export GIT_TRACE2_BRIEF =1
1079
+ $ export GIT_TRACE2 =~/log.normal
1080
1080
$ git fetch origin
1081
1081
...
1082
1082
----------------
@@ -1134,8 +1134,8 @@ In this example, scanning for untracked files ran from +0.012568 to
1134
1134
+0.027149 (since the process started) and took 0.014581 seconds.
1135
1135
+
1136
1136
----------------
1137
- $ export GIT_TR2_PERF_BRIEF =1
1138
- $ export GIT_TR2_PERF =~/log.perf
1137
+ $ export GIT_TRACE2_PERF_BRIEF =1
1138
+ $ export GIT_TRACE2_PERF =~/log.perf
1139
1139
$ git status
1140
1140
...
1141
1141
@@ -1180,8 +1180,8 @@ static enum path_treatment read_directory_recursive(struct dir_struct *dir,
1180
1180
We can further investigate the time spent scanning for untracked files.
1181
1181
+
1182
1182
----------------
1183
- $ export GIT_TR2_PERF_BRIEF =1
1184
- $ export GIT_TR2_PERF =~/log.perf
1183
+ $ export GIT_TRACE2_PERF_BRIEF =1
1184
+ $ export GIT_TRACE2_PERF =~/log.perf
1185
1185
$ git status
1186
1186
...
1187
1187
$ cat ~/log.perf
@@ -1236,8 +1236,8 @@ int read_index_from(struct index_state *istate, const char *path,
1236
1236
This example shows that the index contained 3552 entries.
1237
1237
+
1238
1238
----------------
1239
- $ export GIT_TR2_PERF_BRIEF =1
1240
- $ export GIT_TR2_PERF =~/log.perf
1239
+ $ export GIT_TRACE2_PERF_BRIEF =1
1240
+ $ export GIT_TRACE2_PERF =~/log.perf
1241
1241
$ git status
1242
1242
...
1243
1243
$ cat ~/log.perf
@@ -1310,8 +1310,8 @@ Data events are tagged with the active thread name. They are used
1310
1310
to report the per-thread parameters.
1311
1311
+
1312
1312
----------------
1313
- $ export GIT_TR2_PERF_BRIEF =1
1314
- $ export GIT_TR2_PERF =~/log.perf
1313
+ $ export GIT_TRACE2_PERF_BRIEF =1
1314
+ $ export GIT_TRACE2_PERF =~/log.perf
1315
1315
$ git status
1316
1316
...
1317
1317
$ cat ~/log.perf
0 commit comments