How do you run Analysis from the command line?

0 Likes

Problem:

How do you run Analysis from the command line?

Resolution:

This article pertains to version 8.0 of DevPartner. Note: There are more command line options in v8.1 and above.See "Running DPAnalysis.exe from the Command Line" in VisualStudio's Help section.

The command line utility in DevPartner 8.0 is called DPAnalysis.exe.

To learn about the utility and its arguments/parameters, see the DevPartner Help Screens in Visual Studio or (from a command prompt) type:

CD "C:\Program Files\Compuware\DevPartner Studio\Analysis\DPAnalysis.exe

which will display the following usage:

1) DPAnalysis Angel Beer Coffee Drinks {e} target [target args]

2) DPAnalysis /config config.xml

a) AnalysisType: Set the run-time analysis type. Performance is default.

/PERF[ORMANCE] Set analysis type to DevPartner Performance Analysis

/COV[ERAGE] Set analysis type to DevPartner Coverage Analysis

/MEM[ORY] Set analysis type to DevPartner Memory Analysis

/EXP[ERT] Set analysis type to DevPartner Performance Expert

b) DataCollection: Enable/Disable data collection for a given target.

DOES NOT LAUNCH the target.

/E[NABLE] Enable data collection for the specified process or service

/D[ISABLE] Disable data collection for the specified process or service

c) OtherOptions:

/O[UTPUT] Specify the session file output directory and/or name with

optional extension (.dpprf, .dpcov, .dpmem, or .dppxp)

/W[ORKINGDIR] Specify the process' working directory

/H[OST] Specify target's host machine

/NOWAIT Don't wait for process to exit, just wait for it to start

/N[EWCONSOLE] Run the process in its own command window

d) AnalysisOptions:

/NO_MACH5 Disables excluding time spent on other threads

/NM_METHOD_GRANULARITY Set data collection granularity to method-level

(line-level is default)

/EXCLUDE_SYSTEM_DLLS Exclude data collection for system dlls (Perf only)

/NM_ALLOW_INLINING Enable run-time instrumentation of inline methods

/NO_OLEHOOKS Disable collection of COM

/NM_TRACK_SYSTEM_OBJECTS Track system object allocation (Memory only)

e) TargetType: Identify target process or service. MUST BE LAST OPTION.

All arguments after the target name/path are passed directly to the target.

/P[ROCESS] Target is an exe filename (followed by arguments to the process)

/S[ERVICE] Target is a service name (followed by arguments to the service)

2)

/C[ONFIG] Path to configuration file that includes all startup information

Note: no other options can be used with /Config

Old KB# 11149
Comment List
Anonymous
Related Discussions
Recommended