Available Command Line Options

The following list presents all the options that can be provided on the command line. Most options have a long form and a short form. Both forms can be used, but the long form may be more suitable in response files and the short for more suitable on the command line. For more information about the settings that can be changed using these options, see Session Settings.

 

Option

Short name

Description

/open

/open

String option. Opens the previously saved session file specified by the option value. This option may not be used with any other options.

/noui

/noui

Runs the profiler in non-interactive mode. If this option is used, a process to profile must also be specified.

/delaycleanup

/dc

Boolean option. Enables or disables delayed instance cleanup. May not be used with /nativeprofiling or /collectrealtime.

/rootidentification

/ri

Boolean option. Enables or disables root identification. May not be used with /nativeprofiling.

/disableinlining

/di

Boolean option. Enables or disables inlining of methods. May not be used with /nativeprofiling.

/disposetracker

/dt

Boolean option. Enables or disables the dispose tracker. May not be used with /nativeprofiling.

/lowimpactprofiling

/lip

Boolean option. Enables or disables the low impact profiling mode. May not be used with /disableinlining or /disposetracker.

/nativeprofiling

/np

Obsolete, use /lowimpactprofiling instead.

/heaputil

/hu

Boolean option. Enables or disables the heap utilization tracker.

/collectrealtime

/cr

Boolean option. Enables or disables the real-time data collection. May not be used with /delaycleanup.

/maxgraphmemory

/mg

Integer option. Only used if collecting real-time data. It defines the maximum amount of memory (in kilobytes) to use for real-time data for classes included in the real-time graph.

/maxnographmemory

/mng

Integer option. Only used if collecting real-time data. It defines the maximum amount of memory (in kilobytes) to use for real-time data for classes not included in the real-time graph.

/sessionprompt

/sp

Boolean option. Indicates whether the user should be prompted for an action when a session is ended.

/sessionfolder

/sfl

String option. The option value defines the folder in which auto-saved session files should be saved.

/sessionfile

/sf

String option. The option value defines the name of the file to which auto-saved session files should be saved. The file name can include the strings %DATE% and %TIME%. These strings will be replaced with the current date and time when the session is saved.

/memleakprompt

/mlp

Boolean option. Indicates whether the user should be prompted for an action when a memory leak is detected.

/memleakcollect

/mlc

Boolean option. Indicates whether a full heap snapshot should be collected when a memory leak is detected.

/memleakstartui

/mlui

Boolean option. Indicates whether the user interface should be started when a memory leak is detected.

/memleakstopsession

/mlss

Boolean option. Indicates whether the profiling session should be stopped when a memory leak is detected.

/memleaksuspend

/mlsu

Boolean option. Indicates whether the profiled process should be suspended while a detected memory leak is being handled.

/autosavesnapshot

/as

Boolean option. Enables or disables the auto-saving of heap snapshots.

/includeinstancedata

/iid

Boolean option. Indicates whether instance data should be included in the auto-saved heap snapshots.

/snapshotselect

/ss

Boolean option. Indicates whether the user should be allowed to select which snapshots to include when saving the profiling session.

/maxsnapshots

/ms

Integer option. Defines the maximum number of software triggered heap snapshots.

/debugsymbols

/dbg

Boolean option. Indicates whether debug symbols should be loaded or not.

/autocollect

/ac

Integer option. Specifies the auto-collect interval (0 means no auto-collect).

/resourcetracker

/rt

Boolean option. Indicates whether the unmanaged resources tracker should be enabled.

/program

/p

String option. The option value specifies the path of a program to profile. This option must be the last option, since subsequent arguments are used as arguments for the profiled program. This option is the default option, so it is possible to specify the program to profile by simply providing the path to the program without the parameter name (/program or /p). May not be used with /service or /asp.

/service

/svc

String option. The option value specifies the name of a service to profile. May not be used together with /program or /asp.

/asp

/asp

This option enables ASP.NET profiling. May not be used with /program or /service.

/project

/prj

String option. The option value specifies the path of a profiler project. The settings of the project are used to start profiling a new session. If a process to profile is specified using /program, /service or /asp this will override the launch settings in the profiler project.

/saveproject

/sprj

Boolean option. Indicates whether the project specified by /project should be automatically saved if a session has been added to it. The default setting is to save the project; to avoid saving provide the argument “/saveproject–“.  This option only affects the profiler when running in non-interactive mode.

 

 

.NET Memory Profiler User Manual

© Copyright 2002-2008. SciTech Software AB.

For information about .NET Memory Profiler, see the product site at http://memprofiler.com

.NET Memory Profiler is developed by SciTech Software AB