CWD4RKC0D3R's blog

By CWD4RKC0D3R, 9 years ago, In English

Hello everyone !

I wrote judgement system for checking problems (with c# language and c++ compiler). The platform is Windows. I'm using "cygwin64" to compile c++ codes. I want to get help for getting memory size of compiled program. I dont know how to do this. Can anyone help me ?

  • Vote: I like it
  • +8
  • Vote: I do not like it

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

if I knew which function stl using for allocating memory, maybe I would change content of it. and I would can count memory allocations.

can it be done with this method ?

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Can anyone help me ?

»
9 years ago, # |
  Vote: I like it +16 Vote: I do not like it

Since you're using C#, you can use property PeakVirtualMemorySize64 of class System.Diagnostics.Process.

»
9 years ago, # |
  Vote: I like it +16 Vote: I do not like it

You may find that post useful.