Skip to content

Commit

Permalink
link all 3 at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara committed Sep 11, 2024
1 parent 8c9da17 commit 32bfeaa
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/mono/wasm/Wasm.Build.Tests/TestAppScenarios/MemoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,14 @@ public async Task AllocateLargeHeapThenRepeatedlyInterop()
}

[Theory]
[InlineData("log", true)]
[InlineData("browser", false)]
[InlineData("aot", false)]
public async Task RunSimpleAppWithProfiler(string wasmProfiler, bool testRun)
public async Task RunSimpleAppWithProfiler()
{
string config = "Release";
CopyTestAsset("WasmBasicTestApp", "ProfilerTest", "App");
string extraArgs = $"-p:WasmProfilers={wasmProfiler}; -p:WasmBuildNative=true";
// are are linking all 3 profilers, but below we only initialize log profiler and test it
string extraArgs = $"-p:WasmProfilers=aot;browser;log; -p:WasmBuildNative=true";
BuildProject(config, assertAppBundle: false, extraArgs: extraArgs);

if (!testRun)
return;

var result = await RunSdkStyleAppForBuild(new (Configuration: config, TestScenario: "ProfilerTest"));
Regex regex = new Regex(@"Profile data of size (\d+) bytes");
var match = result.TestOutput
Expand Down

0 comments on commit 32bfeaa

Please sign in to comment.