In a competition I'm entering there is a 350mb memory footprint limit while running which given the data searching going on is easy to fill.
As I iterate and recurse I'd like to watch my overall memory usage to see if I'm getting near that number.
Is there a PB command or windows API that can let me know my current footprint size?
(note, this is not about the size if the exe on disk etc. there are limits for that too but I have that under control)
Memory footprint of my app?
Memory footprint of my app?
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Re: Memory footprint of my app?
GetProcessMemoryInfo()
https://docs.microsoft.com/en-us/window ... -a-process
https://docs.microsoft.com/en-us/window ... -a-process
Re: Memory footprint of my app?
Last edited by JHPJHP on Mon Mar 15, 2021 2:42 am, edited 1 time in total.
If you're not investing in yourself, you're falling behind.
My PureBasic Stuff ➤ FREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
Re: Memory footprint of my app?
You guys rock!
Thanks!
Thanks!
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
