Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

CWD4RKC0D3R's blog

By CWD4RKC0D3R, 11 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

»
11 years ago, hide # |
 
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 ?

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

Can anyone help me ?

»
11 years ago, hide # |
 
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.

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

You may find that post useful.