Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
trace2:data: add editor/pager child classification
author
Jeff Hostetler
<jeffhost@microsoft.com>
Fri, 22 Feb 2019 22:25:04 +0000
(14:25 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 22 Feb 2019 23:27:59 +0000
(15:27 -0800)
Add trace2 process classification for editor and pager
child processes.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
editor.c
patch
|
blob
|
history
pager.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
942b274
)
diff --git
a/editor.c
b/editor.c
index c985eee1f9d1c7307b7f533cb2d38de5a42ccb23..71547674ab4e885bd06560a547e78fddb0849158 100644
(file)
--- a/
editor.c
+++ b/
editor.c
@@
-78,6
+78,7
@@
static int launch_specified_editor(const char *editor, const char *path,
p.argv = args;
p.env = env;
p.use_shell = 1;
+ p.trace2_child_class = "editor";
if (start_command(&p) < 0)
return error("unable to start editor '%s'", editor);
diff --git
a/pager.c
b/pager.c
index a768797fcfcc44de4dbe4d983a45ade8c81b2e1c..4168460ae92ceb18b4a31c4d0524b411231cf137 100644
(file)
--- a/
pager.c
+++ b/
pager.c
@@
-100,6
+100,7
@@
void prepare_pager_args(struct child_process *pager_process, const char *pager)
argv_array_push(&pager_process->args, pager);
pager_process->use_shell = 1;
setup_pager_env(&pager_process->env_array);
+ pager_process->trace2_child_class = "pager";
}
void setup_pager(void)