private static bool GenerateProfilesInManagedCode() { // Use the managed code to generate pprof file by default. // DD_INTERNAL_PROFILING_LIBDDPROF_ENABLED flag is used to activate the native pprof generation var envString = Environment.GetEnvironmentVariable("DD_INTERNAL_PROFILING_LIBDDPROF_ENABLED"); // Either we cannot parse the environment variable value, either it represents a false value var defaultValue = false; ConfigurationProviderUtils.TryParseBooleanSettingStr(envString, defaultValue, out var parsedValue); return(!parsedValue); }
public SmokeTestRunner(string appName, string framework, string appAssembly, string commandLine, ITestOutputHelper output, bool useDefaultLogDir = false, bool useDefaultPprofDir = false) { _appName = appName; _framework = framework; _appAssembly = appAssembly; _commandLine = commandLine; _output = output; _testBaseOutputDir = GetTestOutputPath(); _useDefaultLogDir = useDefaultLogDir; _useDefaultPprofDir = useDefaultPprofDir; _testLogDir = ConfigurationProviderUtils.GetOsSpecificDefaultLogDirectory(); _testPprofDir = ConfigurationProviderUtils.GetOsSpecificDefaultPProfDirectory(); EnvironmentHelper = new EnvironmentHelper(_framework); }