stackwalk
显示堆栈步进选项。 可以直接在命令行或文件中指定堆栈步进标志。
xperf -on base -stackwalk ThreadCreate+ProcessCreate
- Or -
xperf -on base -stackwalk ThreadCreate -stackwalk ProcessCreate
- Or -
xperf -on base -stackwalk @stack.txt
- Or -
xperf -on base -stackwalk 0x0501
注解
可以采用以下格式指定自定义堆栈步进标志:0xmmnn,其中 mm 是事件组,nn 是事件类型。
该文件可以包含以感叹号 (!) 为前缀的空行或注释。
以下列表显示了已识别的堆栈步进标志:
AlpcClosePort
AlpcConnectFail
AlpcConnectRequest
AlpcConnectSuccess
AlpcReceiveMessage
AlpcSendMessage
AlpcUnwait
AlpcWaitForNewMessage
AlpcWaitForReply
CcCanIWriteFail
CcFlushCache
CcFlushSection
CcLazyWriteScan
CcReadAhead
CcWorkitemComplete
CcWorkitemDequeue
CcWorkitemEnqueue
CcWriteBehind
ContiguousMemoryGeneration
CritSecCollision
CSwitch
DiskFlushInit
DiskReadInit
DiskWriteInit
ExecutiveResource
FileCleanup
FileClose
FileCreate
FileDelete
FileDirEnum
FileDirNotify
FileFlush
FileFSCTL
FileOpEnd
FileQueryInformation
FileRead
FileRename
FileSetInformation
FileWrite
HardFault
HeapAlloc
HeapCreate
HeapDestroy
HeapFree
HeapRangeCreate
HeapRangeDestroy
HeapRangeRelease
HeapRangeReserve
HeapRealloc
ImageLoad
ImageUnload
KernelQueueDequeue
KernelQueueEnqueue
KernelSignal
KernelSignalInit
KernelSync
KernelSyncAll
KernelWaitSync
KernelWaitSyncAll
MapFile
标记
MiniFilterPostOpInit
MiniFilterPreOpInit
PagefaultAV
PagefaultCopyOnWrite
PagefaultDemandZero
PagefaultGuard
PagefaultHard
PagefaultTransition
PagefileBackedImageMapping
PageRangeAccess
PageRangeRelease
PoolAlloc
PoolAllocSession
PoolFree
PoolFreeSession
PowerDeviceNotify
PowerDeviceNotifyComplete
PowerIdleStateChange
PowerPerfStateChange
PowerPostSleep
PowerPreSleep
PowerSessionCallout
PowerSessionCalloutReturn
PowerSetDevicesState
PowerSetDevicesStateReturn
PowerSetPowerAction
PowerSetPowerActionReturn
PowerThermalConstraint
ProcessCreate
ProcessDelete
配置文件
ProfileSetInterval
ReadyThread
RegCloseKey
RegCreateKey
RegDeleteKey
RegDeleteValue
RegEnumerateKey
RegEnumerateValueKey
RegFlush
RegKcbCreate
RegKcbDelete
RegOpenKey
RegQueryKey
RegQueryMultipleValue
RegQueryValue
RegSetInformation
RegSetValue
RegVirtualize
SplitIO
SyscallEnter
SyscallExit
ThreadCreate
ThreadDelete
ThreadPoolCallbackCancel
ThreadPoolCallbackDequeue
ThreadPoolCallbackEnqueue
ThreadPoolCallbackStart
ThreadPoolCallbackStop
ThreadPoolClose
ThreadPoolCreate
ThreadPoolSetMaxThreads
ThreadPoolSetMinThreads
ThreadSetBasePriority
ThreadSetPriority
TimerSetOneShot
TimerSetPeriodic
UnMapFile
VirtualAlloc
VirtualFree
示例
堆栈步进标志文件可以包含每行任意数量的堆栈步进标志,由空格分隔,再加上符号 (+) 或新行,如以下示例中所示。
ThreadCreate ProcessCreate
DiskReadInit+DiskWriteInit+DiskFlushInit
CSwitch