How to get the CPU Time consumed and Allocated Bytes for a thread in Mendix.

I want to know how much CPU Time & Memory usage (Allocated Bytes) is being utilized at a particular event in my application. I tried to create Java classes and invoke them during my event call in Mendix using the predefined java methods getThreadCPUTime & getThreadAllocatedBytes but upon doing this, I am getting the CPU Time for thread in response but I am not sure if this Thread CPU Time is for actual Mendix thread or the Java thread which got created for the class during the invoke. Are there any predefined API’s in Mendix, which can be used to fetch CPU Time & Memory usage on a particular event in my application?
0 answers