|
大家有没有用过profilestart和profilestop?
[复制链接]
我想测试一个程序的效率,
我有通过pb平台测试这个效率(如果没有嵌入到这个平台中,它不会显示这个程序的名字,取代的是unknown),但就是要在pb中output输出结果(定制平台时加入了我的程序).
1.怎么把unknown变成我们进程名称
2.我想把它的结果存在一个文件中,
可有办法.
以下程序输出:
Total samples recorded = 120814
Module Hits Percent
------------ ---------- -------
nk.exe 118695 98.2
coredll.dll 905 0.7
tcpstk.dll 226 0.1
afd.dll 52 0.0
ndis.dll 46 0.0
cxport.dll 26 0.0
relfsd.dll 20 0.0
Philo.exe 18 0.0
gwes.exe 15 0.0
VMini.dll 11 0.0
netbios.dll 7 0.0
filesys.exe 6 0.0
fsdmgr.dll 4 0.0
ddi.dll 4 0.0
explorer.exe 3 0.0
shell.exe 2 0.0
pm.dll 1 0.0
commctrl.dll 1 0.0
tapi.dll 1 0.0
redir.dll 1 0.0
ohci2.dll 1 0.0
UNKNOWN 769 0.6
Hits Percent Address Module Routine
---------- ------- -------- ------------:---------------------
113891 94.2 8055ab26 nk.exe : IDLE STATE
320 0.2 8054e977 nk.exe : WaitOneMore
292 0.2 80549ca6 nk.exe : KCNextThread
244 0.2 8054f292 nk.exe : SC WaitForMultiple
153 0.1 805451e6 nk.exe : RunqDequeue
144 0.1 8054b2d4 nk.exe : SleepOneMore
134 0.1 80540c88 nk.exe : memcpy
133 0.1 805430a4 nk.exe : KCall
120 0.0 03fd10a0 coredll.dll : memset
103 0.0 8054921b nk.exe : NextThread
101 0.0 8054191f nk.exe : INTERRUPTS ENABLE
101 0.0 805430cd nk.exe : Int22KCallHandler
98 0.0 80540c10 nk.exe : memset
3 0.0 03f33e1b relfsd.dll : write header
3 0.0 03f343aa relfsd.dll : rreadnocs
3 0.0 03de1090 fsdmgr.dll :?ExitVolume
3 0.0 03cc3a37 cxport.dll : CTEpEventThread
3 0.0 03bc26d6 afd.dll : WsaBufToNdisBuf
3 0.0 03bc5988 afd.dll : EnterCriticalSection
3 0.0 03a5cf70 tcpstk.dll : InterlockedIncrement
3 0.0 03a7990b tcpstk.dll : UDPRcv
3 0.0 03a95e71 tcpstk.dll : GetAddrType
3 0.0 00011915 Philo.exe :?OutputDebug
3 0.0 00011ee3 Philo.exe :?IsAvailable
3 0.0 0001257f Philo.exe :?IsInhibitProfiling
2 0.0 00011018 Philo.exe :?MyWaitForSingleObject
2 0.0 000120bf Philo.exe :?CeCapInit
1 0.0 0001113a Philo.exe :?MySleep
1 0.0 000114fa Philo.exe :?Eat
1 0.0 000125c1 Philo.exe : penter
1 0.0 02cb8b2c ohci2.dll :?GetPortStatus
773 0.6 :
|
|