Forum Discussion

herbie68nl's avatar
herbie68nl
Occasional Contributor
9 years ago
Solved

I Need more Performance information using VB

Hi,

 

I want to test performance of oure desktop application and write the results to an Excel file. Performance not only in elapsed time but also used memory.

 

Now I use Win32API.GlobalMemoryStatus to get available memory. But the available counters here do not change as I expect, so I think I need other memory invormatio.

 

In the Performance Counters, there is a counter available Memory - Commit Bytes

 28-8-2015 10-11-11.jpg

 

Now this seems to be the info I need. But How can I use this in my VB script

 

I found that this counter is availeble in the GetPerformanceInfo API, but cant find an example hou to use this API.

 

Can anybody help me with this one?

3 Replies