Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
bingbingbingbing
mono
提交
25cc2142
M
mono
项目概览
bingbingbingbing
/
mono
与 Fork 源项目一致
从无法访问的项目Fork
通知
35
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mono
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
25cc2142
编写于
12月 23, 2010
作者:
M
Mantas Puida
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'Mono2.6.x-Unity3.x' of github.com:Unity-Technologies/mono into Mono2.6.x-Unity3.x
上级
af563fa5
7a92ff8c
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
503 addition
and
247 deletion
+503
-247
mono/metadata/profiler-private.h
mono/metadata/profiler-private.h
+4
-0
mono/metadata/profiler.c
mono/metadata/profiler.c
+480
-244
mono/metadata/profiler.h
mono/metadata/profiler.h
+18
-2
mono/profiler/mono-profiler-logging.c
mono/profiler/mono-profiler-logging.c
+1
-1
未找到文件。
mono/metadata/profiler-private.h
浏览文件 @
25cc2142
...
...
@@ -39,6 +39,7 @@ void mono_profiler_stat_hit (guchar *ip, void *context) MONO_INTERNAL;
void
mono_profiler_stat_call_chain
(
int
call_chain_depth
,
guchar
**
ips
,
void
*
context
)
MONO_INTERNAL
;
#define MONO_PROFILER_MAX_STAT_CALL_CHAIN_DEPTH 16
int
mono_profiler_stat_get_call_chain_depth
(
void
)
MONO_INTERNAL
;
MonoProfilerCallChainStrategy
mono_profiler_stat_get_call_chain_strategy
(
void
)
MONO_INTERNAL
;
void
mono_profiler_thread_start
(
gsize
tid
)
MONO_INTERNAL
;
void
mono_profiler_thread_end
(
gsize
tid
)
MONO_INTERNAL
;
...
...
@@ -58,11 +59,14 @@ void mono_profiler_class_loaded (MonoClass *klass, int result) MONO_INTERNAL;
void
mono_profiler_appdomain_event
(
MonoDomain
*
domain
,
int
code
)
MONO_INTERNAL
;
void
mono_profiler_appdomain_loaded
(
MonoDomain
*
domain
,
int
result
)
MONO_INTERNAL
;
void
mono_profiler_iomap
(
char
*
report
,
const
char
*
pathname
,
const
char
*
new_pathname
)
MONO_INTERNAL
;
MonoProfileCoverageInfo
*
mono_profiler_coverage_alloc
(
MonoMethod
*
method
,
int
entries
)
MONO_INTERNAL
;
void
mono_profiler_coverage_free
(
MonoMethod
*
method
)
MONO_INTERNAL
;
void
mono_profiler_gc_event
(
MonoGCEvent
e
,
int
generation
)
MONO_INTERNAL
;
void
mono_profiler_gc_heap_resize
(
gint64
new_size
)
MONO_INTERNAL
;
void
mono_profiler_gc_moves
(
void
**
objects
,
int
num
)
MONO_INTERNAL
;
void
mono_profiler_code_chunk_new
(
gpointer
chunk
,
int
size
)
MONO_INTERNAL
;
void
mono_profiler_code_chunk_destroy
(
gpointer
chunk
)
MONO_INTERNAL
;
...
...
mono/metadata/profiler.c
浏览文件 @
25cc2142
此差异已折叠。
点击以展开。
mono/metadata/profiler.h
浏览文件 @
25cc2142
...
...
@@ -25,7 +25,9 @@ typedef enum {
MONO_PROFILE_INS_COVERAGE
=
1
<<
14
,
MONO_PROFILE_STATISTICAL
=
1
<<
15
,
MONO_PROFILE_METHOD_EVENTS
=
1
<<
16
,
MONO_PROFILE_MONITOR_EVENTS
=
1
<<
17
MONO_PROFILE_MONITOR_EVENTS
=
1
<<
17
,
MONO_PROFILE_IOMAP_EVENTS
=
1
<<
18
,
/* this should likely be removed, too */
MONO_PROFILE_GC_MOVES
=
1
<<
19
}
MonoProfileFlags
;
typedef
enum
{
...
...
@@ -71,6 +73,14 @@ typedef enum {
MONO_PROFILER_MONITOR_FAIL
=
3
}
MonoProfilerMonitorEvent
;
typedef
enum
{
MONO_PROFILER_CALL_CHAIN_NONE
=
0
,
MONO_PROFILER_CALL_CHAIN_NATIVE
=
1
,
MONO_PROFILER_CALL_CHAIN_GLIBC
=
2
,
MONO_PROFILER_CALL_CHAIN_MANAGED
=
3
,
MONO_PROFILER_CALL_CHAIN_INVALID
=
4
}
MonoProfilerCallChainStrategy
;
/*
* Functions that the runtime will call on the profiler.
*/
...
...
@@ -101,8 +111,11 @@ typedef void (*MonoProfileAllocFunc) (MonoProfiler *prof, MonoObject *obj,
typedef
void
(
*
MonoProfileStatFunc
)
(
MonoProfiler
*
prof
,
guchar
*
ip
,
void
*
context
);
typedef
void
(
*
MonoProfileStatCallChainFunc
)
(
MonoProfiler
*
prof
,
int
call_chain_depth
,
guchar
**
ip
,
void
*
context
);
typedef
void
(
*
MonoProfileGCFunc
)
(
MonoProfiler
*
prof
,
MonoGCEvent
event
,
int
generation
);
typedef
void
(
*
MonoProfileGCMoveFunc
)
(
MonoProfiler
*
prof
,
void
**
objects
,
int
num
);
typedef
void
(
*
MonoProfileGCResizeFunc
)
(
MonoProfiler
*
prof
,
gint64
new_size
);
typedef
void
(
*
MonoProfileIomapFunc
)
(
MonoProfiler
*
prof
,
const
char
*
report
,
const
char
*
pathname
,
const
char
*
new_pathname
);
typedef
gboolean
(
*
MonoProfileCoverageFilterFunc
)
(
MonoProfiler
*
prof
,
MonoMethod
*
method
);
typedef
void
(
*
MonoProfileCoverageFunc
)
(
MonoProfiler
*
prof
,
const
MonoProfileCoverageEntry
*
entry
);
...
...
@@ -139,13 +152,16 @@ void mono_profiler_install_transition (MonoProfileMethodResult callback);
void
mono_profiler_install_allocation
(
MonoProfileAllocFunc
callback
);
void
mono_profiler_install_monitor
(
MonoProfileMonitorFunc
callback
);
void
mono_profiler_install_statistical
(
MonoProfileStatFunc
callback
);
void
mono_profiler_install_statistical_call_chain
(
MonoProfileStatCallChainFunc
callback
,
int
call_chain_depth
);
void
mono_profiler_install_statistical_call_chain
(
MonoProfileStatCallChainFunc
callback
,
int
call_chain_depth
,
MonoProfilerCallChainStrategy
call_chain_strategy
);
void
mono_profiler_install_exception
(
MonoProfileExceptionFunc
throw_callback
,
MonoProfileMethodFunc
exc_method_leave
,
MonoProfileExceptionClauseFunc
clause_callback
);
void
mono_profiler_install_coverage_filter
(
MonoProfileCoverageFilterFunc
callback
);
void
mono_profiler_coverage_get
(
MonoProfiler
*
prof
,
MonoMethod
*
method
,
MonoProfileCoverageFunc
func
);
void
mono_profiler_install_gc
(
MonoProfileGCFunc
callback
,
MonoProfileGCResizeFunc
heap_resize_callback
);
void
mono_profiler_install_gc_moves
(
MonoProfileGCMoveFunc
callback
);
void
mono_profiler_install_runtime_initialized
(
MonoProfileFunc
runtime_initialized_callback
);
void
mono_profiler_install_iomap
(
MonoProfileIomapFunc
callback
);
void
mono_profiler_install_code_chunk_new
(
MonoProfilerCodeChunkNew
callback
);
void
mono_profiler_install_code_chunk_destroy
(
MonoProfilerCodeChunkDestroy
callback
);
void
mono_profiler_install_code_buffer_new
(
MonoProfilerCodeBufferNew
callback
);
...
...
mono/profiler/mono-profiler-logging.c
浏览文件 @
25cc2142
...
...
@@ -5848,7 +5848,7 @@ mono_profiler_startup (const char *desc)
mono_profiler_install_allocation
(
object_allocated
);
mono_profiler_install_monitor
(
monitor_event
);
mono_profiler_install_statistical
(
statistical_hit
);
mono_profiler_install_statistical_call_chain
(
statistical_call_chain
,
profiler
->
statistical_call_chain_depth
);
mono_profiler_install_statistical_call_chain
(
statistical_call_chain
,
profiler
->
statistical_call_chain_depth
,
MONO_PROFILER_CALL_CHAIN_MANAGED
);
mono_profiler_install_gc
(
gc_event
,
gc_resize
);
mono_profiler_install_runtime_initialized
(
runtime_initialized
);
#if (HAS_OPROFILE)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录