WINEC7的系统资源监视器 [英] System resource monitor of WINEC7

查看:75
本文介绍了WINEC7的系统资源监视器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在EVM上运行WINEC7,我需要知道如何在OS设计中包含我的系统资源监视器以及如何捕获它并将其视为CPU性能的日志文件。

I have WINEC7 running on the EVM ,i need to know how can i include my system resource monitor in the OS design and how can i capture it and see as a log file of CPU performance.

推荐答案

你需要知道什么CPU性能?

What CPU performance you need to know ?

使用PB和VS你可以实际分析。使用主动同步将设备连接到开发PC。

Using PB and VS you can actually profile. Using active sync connect your device to the development PC.

浏览VS的工具 - >远程工具,并对"系统信息,性能监视器,内核跟踪器等"进行概要分析。您也可以保存结果。

Browse VS's tool->remote tool and do the profiling for "system information, performance monitor, kernel tracker etc" you can also save the result.

还有可能读取资源参数并记录它。

Problematically also there is a possibility of reading resource parameters and logging it.

例如,要记录系统加载和内存状态,可以使用以下代码片段: -

Eg to log the system load and memory status, following code snippet can be used :-

MEMORYSTATUS MemStatus = {0};

MEMORYSTATUS MemStatus = {0};

/ *获取系统内存参数* /

         GlobalMemoryStatus(安培; MemStatus); 

/* Get the system memory parameters */
        GlobalMemoryStatus(&MemStatus); 

RETAILMSG(1,(L"1。系统负载      =%d%\ n",MemStatus.dwMemoryLoad));



         RETAILMSG(1,(L" 2.TOTAL PHY MEM    =%ld bytes \ n",MemStatus.dwTotalPhys));



         RETAILMSG(1,(L" 3.AVAIL PHY MEM    =%ld bytes \ n",MemStatus.dwAvailPhys));



         RETAILMSG(1,(L" 4.TOTAL VIRTUAL MEM =%ld bytes \ n",MemStatus.dwTotalVirtual));
$


         RETAILMSG(1,(L" 5.AVAIL VIRTUAL MEM =%ld bytes \ n",MemStatus.dwAvailVirtual));

RETAILMSG(1,(L"1. SYSTEM LOAD       = %d percent\n",MemStatus.dwMemoryLoad));

        RETAILMSG(1,(L"2. TOTAL PHY MEM     = %ld bytes\n",MemStatus.dwTotalPhys));

        RETAILMSG(1,(L"3. AVAIL PHY MEM     = %ld bytes\n",MemStatus.dwAvailPhys));

        RETAILMSG(1,(L"4. TOTAL VIRTUAL MEM = %ld bytes\n",MemStatus.dwTotalVirtual));

        RETAILMSG(1,(L"5. AVAIL VIRTUAL MEM = %ld bytes\n",MemStatus.dwAvailVirtual));

希望这对你有帮助!

--- Misbah

--- Misbah


这篇关于WINEC7的系统资源监视器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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