Measure and bound reactive document cost
This commit is contained in:
parent
f38966b4b9
commit
fbf93f3570
5 changed files with 273 additions and 12 deletions
28
scripts/measure-reactive-document-performance.ps1
Normal file
28
scripts/measure-reactive-document-performance.ps1
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
param(
|
||||
[switch] $Quick
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$project = Join-Path $root "tools\GameCult.Mesh.PerformanceProbe\GameCult.Mesh.PerformanceProbe.csproj"
|
||||
$buildArguments = @(
|
||||
"build",
|
||||
$project,
|
||||
"--configuration", "Release",
|
||||
"--verbosity", "quiet",
|
||||
"/p:NoWarn=1591%3BCS8632"
|
||||
)
|
||||
& dotnet @buildArguments
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "CultMesh reactive document performance probe build failed."
|
||||
}
|
||||
|
||||
$arguments = @("run", "--project", $project, "--configuration", "Release", "--no-build")
|
||||
if ($Quick) {
|
||||
$arguments += @("--", "--quick")
|
||||
}
|
||||
|
||||
& dotnet @arguments
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "CultMesh reactive document performance probe failed."
|
||||
}
|
||||
Loading…
Reference in a new issue