- System requirements
- Profiler architecture
- Running the profiler
- Profiler activation
- Start profiling
- Capturing snapshots
- Solving performance problems
- CPU profiling
- Threads
- Memory profiling
- Garbage collection
- Exception profiling
- Probes: monitor higher level events
- Performance Charts
- Inspections: automatic recognition of typical problems
- Automatically trigger actions on event
- Summary, snapshot annotation, automatic deobfuscation
- Time measurement (CPU time, wall time)
- Filters
- Snapshot directory customization
- Export of profiling results to HTML, CSV, XML, plain text
- Profiler API
- Profiler HTTP API
- Command line tool to control profiling
- Settings
Command line tool to control profiling
Command line tool allows you to control profiling without using the profiler graphical user interface. It is especially useful when profiling applications on a remote machine to which you have only console access.
On Windows some operations the tool performs require administrative privileges.
You may want to use it from within a command prompt (cmd.exe
)
running as administrator.
Usage:
On Windows
<Profiler Installation Directory>\bin\YourKitTools.bat <command>
On macOS
<Profiler Installation Directory>/Contents/Resources/bin/YourKitTools.sh <command>
On Linux
<Profiler Installation Directory>/bin/YourKitTools.sh <command>
Available commands
Command | Description |
help
|
Show a summary of the YourKitTools commands. |
status
|
Print locally running applications and current profiler state. |
attach PID [options]
|
Attach profiler agent to a local .NET process with specified startup options. |
guid
|
Print the profiler GUID needed to manually enable profiling of a standalone application. |
Windows only commands |
|
install
|
Register agent DLLs and install the monitoring server. |
uninstall
|
Disable profiling, unregister agent DLLs and uninstall monitoring server. |
enable [options]
|
Enable profiling of all .NET processes that will start on this machine with specified startup options. |
disable
|
Disable profiling of all .NET processes which was enabled with |
iis-enable [options]
|
Enable profiling of IIS with specified startup options and restarts it. |
iis-disable
|
Disable profiling of IIS and restarts it. |
Examples
YourKitTools.bat attach 6942
YourKitTools.bat iis-enable tracing,alloceach=10