- System requirements
- Profiler architecture
- Profiler installation
- Uninstall profiler
- Running the profiler
- Profiler activation
- Welcome screen
- Start profiling
- Profiling overhead
- Snapshots
- Solving performance problems
- CPU profiling
- Thread profiling
- Object allocation profiling
- Memory profiling
- Exception profiling
- Telemetry
- Probes: monitor higher level events
- Inspections: automatic recognition of typical problems
- Automatically trigger actions on event
- Automatic deobfuscation
- Summary, automatic deobfuscation
- Filters
- Profiler command line
- Command line tool to control profiling
- Export of profiling results to external formats
- Profiler .NET API
- Profiler HTTP API
- Settings
- Troubleshooting
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:
Linux
<Profiler Installation Directory>/bin/YourKitTools.sh <command>
macOS
<Profiler Installation Directory>/Contents/Resources/bin/YourKitTools.sh <command>
Windows
<Profiler Installation Directory>\bin\YourKitTools.bat <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,alloc_each=10