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:
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?
BVE
0

Comments

2 comments

  • Russell D
    You can't schedule them that way no unfortunately, and as you've said the API only works by invoking from within the application itself.
    Russell D
    0
  • BVE
    Hello Russel,

    I hoped for a different answer, I'll have to wait and do it manually.

    Thanks and have a nice day!
    BVE
    0

Add comment

Please sign in to leave a comment.