Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The C++ Build Insights SDK works with Visual Studio 2017 and later. To see the documentation for these versions, set the Visual Studio Version selector control for this article to Visual Studio 2017 or later. You can find the selector at the top of the table of contents on this page.
The StopAndAnalyzeTracingSessionW function stops an ongoing tracing session and saves the resulting trace in a temporary file. An analysis session is then immediately started using the temporary file as an input. Executables calling this function must have administrator privileges.
Syntax
enum RESULT_CODE StopAndAnalyzeTracingSessionW(
const wchar_t* sessionName,
TRACING_SESSION_STATISTICS* statistics,
const ANALYSIS_DESCRIPTOR* analysisDescriptor);
Parameters
sessionName
The name of the tracing session to stop. Use the same name you use in the start function, such as StartTracingSessionW or StartTracingSession2W.
statistics
Pointer to a TRACING_SESSION_STATISTICS object. StopAndAnalyzeTracingSessionW writes trace collection statistics in this object before returning.
analysisDescriptor
Pointer to an ANALYSIS_DESCRIPTOR object. Use this object to configure the analysis session that's started by StopAndAnalyzeTracingSessionW.
Return Value
A result code from the RESULT_CODE enum.