2018年1月4日

摘要: “undefined behavior: behavior for which this International Standard imposes no requirements.” example of Undefined BehaviorUse of an uninitialized variableMisaligned pointers Access to an object... 阅读全文
posted @ 2018-01-04 07:42 花老🐯 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 要用 release 版本来profile 概述time profile 是使用采样的方法来统计,而不是记录每一个方法调用的起始和结束,采样间隔是 1 ms。 在上图中,main 函数被采样了 5 次, method3 没有被采样,但是确实执行了。不能区分长时间运行的任务和重复执行的任务。关注点是 CPU,而且不会记录所有操作。比如 method3 没有被采样。 如何看 time profi... 阅读全文
posted @ 2018-01-04 07:41 花老🐯 阅读(921) 评论(0) 推荐(0) 编辑

导航