Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/trace2/tr2_tgt_event.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / trace2 / tr2_tgt_event.c` 721 lines ยท 21149 bytes Raw Blame History 1 #define DISABLE_SIGN_COMPARE_WARNINGS 2 3 #include "git-compat-util.h" 4 #include "config.h" 5 #include "json-writer.h" 6 #include "repository.h" 7 #include "run-command.h" 8 #include "version.h" 9 #include "trace2/tr2_dst.h" 10 #include "trace2/tr2_tbuf.h" 11 #include "trace2/tr2_sid.h" 12 #include "trace2/tr2_sysenv.h" 13 #include "trace2/tr2_tgt.h" 14 #include "trace2/tr2_tls.h" 15 #include "trace2/tr2_tmr.h" 16 17 static struct tr2_dst tr2dst_event = { 18 .sysenv_var = TR2_SYSENV_EVENT, 19 }; 20 21 /* 22 * The version number of the JSON data generated by the EVENT target in this 23 * source file. The version should be incremented if new event types are added, 24 * if existing fields are removed, or if there are significant changes in 25 * interpretation of existing events or fields. Smaller changes, such as adding 26 * a new field to an existing event, do not require an increment to the EVENT 27 * format version. 28 */ 29 #define TR2_EVENT_VERSION "4" 30 31 /* 32 * Region nesting limit for messages written to the event target. 33 * 34 * The "region_enter" and "region_leave" messages (especially recursive 35 * messages such as those produced while diving the worktree or index) 36 * are primarily intended for the performance target during debugging. 37 * 38 * Some of the outer-most messages, however, may be of interest to the 39 * event target. Use the TR2_SYSENV_EVENT_NESTING setting to increase 40 * region details in the event target. 41 */ 42 static int tr2env_event_max_nesting_levels = 2; 43 44 /* 45 * Use the TR2_SYSENV_EVENT_BRIEF to omit the