Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
ab820d7a
R
runtime
项目概览
dotNET Platform
/
runtime
大约 1 年 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ab820d7a
编写于
6月 04, 2021
作者:
J
Johan Lorensson
提交者:
GitHub
6月 04, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adapt more Mono profiler events into NativeRuntimeEvents. (#53677)
上级
e0671e7e
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
843 addition
and
67 deletion
+843
-67
src/mono/mono/eventpipe/ep-rt-mono.c
src/mono/mono/eventpipe/ep-rt-mono.c
+773
-65
src/mono/mono/eventpipe/ep-rt-mono.h
src/mono/mono/eventpipe/ep-rt-mono.h
+42
-0
src/mono/mono/eventpipe/gen-eventing-event-inc.lst
src/mono/mono/eventpipe/gen-eventing-event-inc.lst
+17
-0
src/mono/mono/metadata/gc-internals.h
src/mono/mono/metadata/gc-internals.h
+1
-1
src/mono/mono/metadata/object-internals.h
src/mono/mono/metadata/object-internals.h
+1
-1
src/mono/mono/metadata/profiler-private.h
src/mono/mono/metadata/profiler-private.h
+3
-0
src/mono/mono/metadata/profiler.c
src/mono/mono/metadata/profiler.c
+6
-0
未找到文件。
src/mono/mono/eventpipe/ep-rt-mono.c
浏览文件 @
ab820d7a
此差异已折叠。
点击以展开。
src/mono/mono/eventpipe/ep-rt-mono.h
浏览文件 @
ab820d7a
...
...
@@ -23,6 +23,7 @@
#include <mono/metadata/w32file.h>
#include <mono/metadata/w32event.h>
#include <mono/metadata/environment-internals.h>
#include <mono/metadata/profiler.h>
#undef EP_ARRAY_SIZE
#define EP_ARRAY_SIZE(expr) G_N_ELEMENTS(expr)
...
...
@@ -2165,9 +2166,50 @@ ep_rt_mono_write_event_method_load (
bool
ep_rt_mono_write_event_module_load
(
MonoImage
*
image
);
bool
ep_rt_mono_write_event_module_unload
(
MonoImage
*
image
);
bool
ep_rt_mono_write_event_assembly_load
(
MonoAssembly
*
assembly
);
bool
ep_rt_mono_write_event_assembly_unload
(
MonoAssembly
*
assembly
);
bool
ep_rt_mono_write_event_thread_created
(
ep_rt_thread_id_t
tid
);
bool
ep_rt_mono_write_event_thread_terminated
(
ep_rt_thread_id_t
tid
);
bool
ep_rt_mono_write_event_type_load_start
(
MonoType
*
type
);
bool
ep_rt_mono_write_event_type_load_stop
(
MonoType
*
type
);
bool
ep_rt_mono_write_event_exception_thrown
(
MonoObject
*
object
);
bool
ep_rt_mono_write_event_exception_clause
(
MonoMethod
*
method
,
uint32_t
clause_num
,
MonoExceptionEnum
clause_type
,
MonoObject
*
obj
);
bool
ep_rt_mono_write_event_monitor_contention_start
(
MonoObject
*
obj
);
bool
ep_rt_mono_write_event_monitor_contention_stop
(
MonoObject
*
obj
);
bool
ep_rt_mono_write_event_method_jit_memory_allocated_for_code
(
const
uint8_t
*
buffer
,
uint64_t
size
,
MonoProfilerCodeBufferType
type
,
const
void
*
data
);
bool
ep_rt_write_event_threadpool_worker_thread_start
(
uint32_t
active_thread_count
,
...
...
src/mono/mono/eventpipe/gen-eventing-event-inc.lst
浏览文件 @
ab820d7a
...
...
@@ -3,22 +3,36 @@
AppDomainDCEnd_V1
AssemblyDCEnd_V1
AssemblyLoad_V1
AssemblyUnload_V1
ContentionStart_V1
ContentionStop
DCEndComplete_V1
DCEndInit_V1
DomainModuleDCEnd_V1
DomainModuleLoad_V1
EEStartupStart_V1
ExceptionCatchStart
ExceptionCatchStop
ExecutionCheckpointDCEnd
ExceptionFilterStart
ExceptionFilterStop
ExceptionFinallyStart
ExceptionFinallyStop
ExceptionThrown_V1
ExceptionThrownStop
MethodDCEndILToNativeMap
MethodDCEnd_V1
MethodDCEndVerbose_V1
MethodILToNativeMap
MethodJitMemoryAllocatedForCode
MethodJittingStarted_V1
MethodLoad_V1
MethodLoadVerbose_V1
ModuleDCEnd_V2
ModuleLoad_V2
ModuleUnload_V2
RuntimeInformationDCStart
ThreadCreated
ThreadPoolIODequeue
ThreadPoolIOEnqueue
ThreadPoolWorkerThreadAdjustmentAdjustment
...
...
@@ -28,3 +42,6 @@ ThreadPoolWorkerThreadStart
ThreadPoolWorkerThreadStop
ThreadPoolWorkerThreadWait
ThreadPoolWorkingThreadCount
ThreadTerminated
TypeLoadStart
TypeLoadStop
src/mono/mono/metadata/gc-internals.h
浏览文件 @
ab820d7a
...
...
@@ -86,7 +86,7 @@ extern void mono_gc_set_stack_end (void *stack_end);
* Not exported in public headers, but can be linked to (unsupported).
*/
gboolean
mono_object_is_alive
(
MonoObject
*
obj
);
gboolean
mono_gc_is_finalizer_thread
(
MonoThread
*
thread
);
MONO_COMPONENT_API
gboolean
mono_gc_is_finalizer_thread
(
MonoThread
*
thread
);
void
mono_gchandle_set_target
(
MonoGCHandle
gchandle
,
MonoObject
*
obj
);
...
...
src/mono/mono/metadata/object-internals.h
浏览文件 @
ab820d7a
...
...
@@ -1751,7 +1751,7 @@ mono_object_clone_checked (MonoObject *obj, MonoError *error);
MonoObjectHandle
mono_object_clone_handle
(
MonoObjectHandle
obj
,
MonoError
*
error
);
MonoObject
*
M
ONO_COMPONENT_API
M
onoObject
*
mono_object_isinst_checked
(
MonoObject
*
obj
,
MonoClass
*
klass
,
MonoError
*
error
);
MonoObjectHandle
...
...
src/mono/mono/metadata/profiler-private.h
浏览文件 @
ab820d7a
...
...
@@ -157,6 +157,9 @@ mono_profiler_clauses_enabled (void)
return
mono_profiler_state
.
clauses
;
}
MONO_COMPONENT_API
gboolean
mono_component_profiler_clauses_enabled
(
void
);
#define _MONO_PROFILER_EVENT(name, ...) \
ICALL_EXPORT void mono_profiler_raise_ ## name (__VA_ARGS__);
#define MONO_PROFILER_EVENT_0(name, type) \
...
...
src/mono/mono/metadata/profiler.c
浏览文件 @
ab820d7a
...
...
@@ -595,6 +595,12 @@ mono_profiler_enable_clauses (void)
return
mono_profiler_state
.
clauses
=
TRUE
;
}
gboolean
mono_component_profiler_clauses_enabled
(
void
)
{
return
mono_profiler_clauses_enabled
();
}
/**
* mono_profiler_set_call_instrumentation_filter_callback:
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录