schedule a snapshot
BVE
Posts: 2 New member
Hello,
we have an application with a memory leak. The supplier asks to take snapshots a few minutes before and after the events causing the memory leak.
These events happen at night, so I want to schedule the snapshots. Is this possible?
I've tried with Powershell, but it always returns false when I try to take a snapshot. I suppose the api only works if invoked in the application to be traced itself?
The Powershell commands I've used:
we have an application with a memory leak. The supplier asks to take snapshots a few minutes before and after the events causing the memory leak.
These events happen at night, so I want to schedule the snapshots. Is this possible?
I've tried with Powershell, but it always returns false when I try to take a snapshot. I suppose the api only works if invoked in the application to be traced itself?
The Powershell commands I've used:
add-type -Path "D:\Program Files\Red Gate\ANTS Memory Profiler 10\RedGate.MemoryProfiler.Snapshot.dll"
[RedGate.MemoryProfiler.Snapshot]::TakeSnapshot("test")
Is there a way to schedule the snapshots or take snapshots by command line or powershell?
[RedGate.MemoryProfiler.Snapshot]::TakeSnapshot("test")
Is there a way to schedule the snapshots or take snapshots by command line or powershell?
Tagged:
Best Answer
-
Russell D Posts: 1,324 Diamond 5You can't schedule them that way no unfortunately, and as you've said the API only works by invoking from within the application itself.Have you visited our Help Centre?
Answers
I hoped for a different answer, I'll have to wait and do it manually.
Thanks and have a nice day!