API Reference
Item | Returns | Description |
---|---|---|
|
| Returns a set of features currently active in the profiler: Bit flags in the
|
| Collect memory snapshot and save it to the disk. This method forces full garbage collection. Doesn't throw any errors even if the application is run with profiling disabled. | |
| [Internal use only] Collect memory snapshot and save it to the disk. This method forces full garbage collection. Doesn't throw any errors even if the application is run with profiling disabled. | |
| Forces full garbage collection. Doesn't throw any errors even if the application is run with profiling disabled. | |
| Enable/disable collecting memory allocation data. Does nothing if collecting allocation data is disabled in the profiler. To check whether the collecting is enabled, use Doesn't throw any errors even if the application is run with profiling disabled. | |
| Detach the profiler from the profiled process. Does nothing if detaching is disabled in the profiler. To check whether the detaching is enabled, use |
Item | Returns | Description |
---|---|---|
| Initializes the profiler. This method is a simplified way to call the | |
|
| (We recommend that you use Initializes the profiler. During the initialization, the API checks whether the dotMemory.exe console profiler exists in the same folder with the executing assembly. If the console profiler is not found, downloads the compatible JetBrains.dotMemory.Console NuGet-package into the |
| Gets a memory snapshot using the default profiling configuration. | |
|
| Gets a memory snapshot using the specified profiling |
| Attaches dotMemory to the current process using the default profiling configuration. | |
| Attaches dotMemory to the current process using the specified profiling | |
|
| Detaches dotMemory from the current process. Returns a string with the path to the saved snapshot (dotMemory workspace). |
|
| Gets a memory snapshot. |
Item | Returns | Description |
---|---|---|
|
| Specifies TRACE log level. |
|
| Specifies VERBOSE log level. |
|
| Specifies the path to the log file. |
|
| Specifies the path to the workspace file (snapshots storage). |
|
| Specifies the path to the workspace directory (filename will be auto-generated). |
|
| Specifies whether to open the generated workspace in JetBrains dotMemory. |
|
| Appends an arbitrary argument to the command line as is (without any quoting, and so on). |