I have C++ exe file( no source code) and need to run many large dataset under unix, b

I have C++ exe file( no source code) and need to run many large dataset under unix, but how to know the memeroy usage for one dataset?

I think "top" is not good and if using the profiler, it seems no free download, any ideas?

What version of UNIX are you using?