/
IProcDumpArgsBuilder.cs
46 lines (43 loc) · 1.62 KB
/
IProcDumpArgsBuilder.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.TestPlatform.Extensions.BlameDataCollector
{
using System.Collections.Generic;
public interface IProcDumpArgsBuilder
{
/// <summary>
/// Arguments for procdump.exe
/// </summary>
/// <param name="processId">
/// Process Id
/// </param>
/// <param name="filename">
/// Filename for dump file
/// </param>
/// <param name="procDumpExceptionsList">
/// List of exceptions to look for
/// </param>
/// <param name="isFullDump">
/// Is full dump enabled
/// </param>
/// <param name="collectAlways">
/// Collects the dump on process exit even when there is no exception
/// </param>
/// <returns>Arguments</returns>
string BuildTriggerBasedProcDumpArgs(int processId, string filename, IEnumerable<string> procDumpExceptionsList, bool isFullDump, bool collectAlways);
/// <summary>
/// Arguments for procdump.exe for getting a dump in case of a testhost hang
/// </summary>
/// <param name="processId">
/// Process Id
/// </param>
/// <param name="filename">
/// Filename for dump file
/// </param>
/// <param name="isFullDump">
/// Is full dump enabled
/// </param>
/// <returns>Arguments</returns>
string BuildHangBasedProcDumpArgs(int processId, string filename, bool isFullDump);
}
}