Commit 0f5a39d
authored
[Mono] Add Mono Profiler events into EventPipe. (#55264)
* Add Mono Profiler events into EventPipe.
* Drop callstack on exception_clause profile event.
Needed since instrumentation uses mono_profiler_raise_exception_clause
used without wrapper and that in turn will cause incomplete stacks due
to transitioning into native code without informing unwinder.
* Fix build error.
* Add support to configure MonoVM diagnostics using env variable.
Adding new MONO_DIAGNOSTICS env variable that can include diagnostic
specific configs as well as --diagnostic-ports, meaning that its possible
to use that instead of DOTNET_DiagnosticPorts variable. It also add
variable to set some mono profiler settings needed very early during
startup to get GC alloc as well as exception clause checks.
In order to set needed options early in process, EventPipe component
calls a specific component_init method setting up needed config.
* Fix enable/disable callback registrations based on enable/disable bit mask.
* Add ability to specify callspec for method instrumentation.
Add --diagnostic-mono-profiler-callspec= to accept Mono callspec string.
Split keywords to enable method tracing and instrumentation, enables
ability to start instrumenting (but not emitting events) in one session
and then enable emitting events in later session.
If a callspec is used, instrumentation will be enabled on component init.
* Only init component once when using static component builds.1 parent ac53e65 commit 0f5a39d
File tree
7 files changed
+5357
-2096
lines changed- src
- coreclr
- scripts
- vm
- mono/mono
- component
- eventpipe
7 files changed
+5357
-2096
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
340 | 348 | | |
341 | 349 | | |
342 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
343 | 355 | | |
344 | 356 | | |
345 | 357 | | |
| |||
669 | 681 | | |
670 | 682 | | |
671 | 683 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
682 | 695 | | |
683 | 696 | | |
684 | 697 | | |
| |||
687 | 700 | | |
688 | 701 | | |
689 | 702 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
694 | 708 | | |
695 | 709 | | |
696 | 710 | | |
| |||
892 | 906 | | |
893 | 907 | | |
894 | 908 | | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
895 | 922 | | |
896 | 923 | | |
897 | 924 | | |
| |||
949 | 976 | | |
950 | 977 | | |
951 | 978 | | |
| 979 | + | |
| 980 | + | |
952 | 981 | | |
953 | 982 | | |
954 | 983 | | |
| |||
0 commit comments