做什么“自我”和“#Self”在Time Profiler工具中意味着什么? [英] What do "Self" and "# Self" mean in the Time Profiler instrument?

查看:114
本文介绍了做什么“自我”和“#Self”在Time Profiler工具中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档只是说它意味着符号自称的时间,但这意味着什么? #Self是什么意思?

The documentation just says it means "the number of time the symbol calls itself", but what does this mean? And what does "# Self" mean?

当我使用Instruments时,如果#Self等于100,那么Self也是100.0。

When I use Instruments, if "# Self" is equal to 100, then "Self" is also 100.0.

推荐答案

我认为您阅读的文档必须不正确。

I think the documentation you read must be incorrect.

Time Profiler中的Self 是指在给定函数中花费的时间,不包括在其调用的其他方法中花费的时间。

Self in the Time Profiler refers to the amount of time spent in the given function itself, excluding time spent in other methods that it calls.

自我%是相同的,但表示为总运行时间的百分比。

Self % is the same thing but expressed as a percentage of the total running time.

#Self 是实际的数量击中此功能或方法的探查器示例。默认情况下,Time Profiler每1 ms采样一次,因此该数字通常与 Self 值相同。

# Self is the number of actual profiler samples that hit this function or method. The Time Profiler samples every 1 ms by default, so this number will often be the same as the Self value.

这篇关于做什么“自我”和“#Self”在Time Profiler工具中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆