Skip to content

Commit

Permalink
collect dumps every 5 seconds (5 dumps total)
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet committed Nov 21, 2024
1 parent 52a27e1 commit 14ea3c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion procDump.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,16 @@ if (-not (Test-Path $filePath)) {

#$process = Start-Process -FilePath "dotnet.exe" -PassThru -ArgumentList "tool run ModernUOSchemaGenerator -- ModernUO.sln"
$toolProcess = Run-Process "dotnet.exe" "tool run ModernUOSchemaGenerator -- ModernUO.sln"
$dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -h $($toolProcess.Id) $procDumpFolder"
$dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -s 5 -n 5 $($toolProcess.Id) $procDumpFolder"

while (-not $dumpProcess.HasExited) {
Start-Sleep -Seconds 1
}

$toolProcess.Kill()

# Start-Sleep -Seconds 30

# $dumpProcess = Run-Process "$procDumpFolder\procdump.exe" "-accepteula -ma -h $($toolProcess.Id) $procDumpFolder"
# $dumpProcess.WaitForExit()

0 comments on commit 14ea3c6

Please sign in to comment.