MSDN中有几句话看的不是很明白,大家帮忙解释下

xilidecai 2009-10-28 04:52:04
今天在看MSDN中,发现了一段话,不知道该如何去理解,有明白的能说一下吗?
In Windows Embedded CE 6.0, it is no longer necessary to build a profiling OAL over a non-profiling OAL. If your OAL supports profiling, you should always include it in the final or shipping image. Profiling is a very useful tool for debugging devices in the field.
NOTE:
Do not add the profiler to shipping devices. The goal is to avoid performance and memory loss due to the profiler.
To switch between a non-profiling run-time image and profiling run-time image, simply set IMGPROFILER=1 and remake the image. KernProf.dll will detect OAL profiling support and use it if it is available.

This means that the build target KernKitlProf.exe has no equivalent in Windows Embedded CE 6.0. OEMs only need to build Oal.exe, or OalKitl.exe if KITL is statically-linked. If your OAL supports profiling, you can simply initialize the following function pointers in OEMInit:

g_pOemGlob->pfnProfileTimerEnable = OEMProfileTimerEnable;

g_pOemGlob->pfnProfileTimerDisable = OEMProfileTimerDisable;


这里我有如下疑问:
1.profiling OAL 是什么?在那个目录下?
2.shipping image应该怎么解释?

在选项配置里的解释是:
Enable Profiling

在image增加profiler功能, 性能测试功能. 选择此项可以打开Windows CE Kernel Profile服务,这样就可以对内核的运行性能指标进行剖分,以便对系统进行优化。
3.按照上述说法,内核运行性能有哪些?如何剖分?如何优化?


...全文
115 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
xilidecai 2009-10-29
  • 打赏
  • 举报
回复
3.按照上述说法,内核运行性能如何剖分?如何优化?或者说在实际开发中有什么地方要特别注意的?
gooogleman 2009-10-29
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 xilidecai 的回复:]
引用 7 楼 gooogleman 的回复:
Do not add the profiler to shipping devices. The goal is to avoid performance and memory loss due to the profiler.

不要加调试信息到发布产品当中。目的是为了提高性能以及避免内存损耗

3X,GM,呵呵
[/Quote]

嘿嘿,如果我说错了要通知我啊,嘿嘿ie
xilidecai 2009-10-29
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 gooogleman 的回复:]
Do not add the profiler to shipping devices. The goal is to avoid performance and memory loss due to the profiler.

不要加调试信息到发布产品当中。目的是为了提高性能以及避免内存损耗
[/Quote]
3X,GM,呵呵
xilidecai 2009-10-29
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 codewarrior 的回复:]
DEBUG,RETAIL,SHIP,这三个是不一样的,ship image就是你最终发布到设备里,用户拿到手的image 。
[/Quote]
恩, 多少明白了点!谢谢~~
xilidecai 2009-10-29
  • 打赏
  • 举报
回复
再等等,因为我没有开发的实战经验,所以想了解下,晚上结贴~
gooogleman 2009-10-28
  • 打赏
  • 举报
回复
Do not add the profiler to shipping devices. The goal is to avoid performance and memory loss due to the profiler.

不要加调试信息到发布产品当中。目的是为了提高性能以及避免内存损耗
会思考的草 2009-10-28
  • 打赏
  • 举报
回复
DEBUG,RETAIL,SHIP,这三个是不一样的,ship image就是你最终发布到设备里,用户拿到手的image 。
ProgrammerNO1 2009-10-28
  • 打赏
  • 举报
回复
相当于运行轨迹,曲线数据

学过高数的话,理解起来不难吧
xilidecai 2009-10-28
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 codewarrior 的回复:]
就是profiler,可以在代码里加上perf marker,以收集一些运行时的数据,分析瓶颈
[/Quote]
能说的再详细点嘛?
以前一直没有关注过这个问题,现在想了解一下!
xilidecai 2009-10-28
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 reallyu 的回复:]
shipping image的意思就是最终产品的image,表示你生成的系统已经可以装船拿出去卖了,而不是还在修改,测试阶段
[/Quote]
恩,这样啊!谢谢~~~呵呵~
Reallyu 2009-10-28
  • 打赏
  • 举报
回复
shipping image的意思就是最终产品的image,表示你生成的系统已经可以装船拿出去卖了,而不是还在修改,测试阶段
会思考的草 2009-10-28
  • 打赏
  • 举报
回复
就是profiler,可以在代码里加上perf marker,以收集一些运行时的数据,分析瓶颈

19,502

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧