Turn on HEAPPROFILE environment variable for only a stipulated period of time, and then turn it off

34 views
Skip to first unread message

Rahul Seetharaman

unread,
Oct 12, 2021, 9:11:08 AM10/12/21
to gperftools
Hello guys
I have a question about HEAPPROFILE environment variable. 
Is it possible to start a binary execution and then turn on HEAPPROFILE environment variable for only a stipulated period of time, and then turn it off ? 
What I wish to do, while the binary file is running, run HEAPPROFILE for 30 seconds starting from an arbitrary point and then turn it off. How do I accomplish this ?
Thanks
Rahul
Reply all
Reply to author
Forward
0 new messages