Get sum of instance...
 
Notifications
Clear all

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Get sum of instances for PERF

6 Posts
2 Users
1 Reactions
462 Views
 MVS
(@mvs)
Active Member Registered
Joined: 5 months ago
Posts: 3
Topic starter  

When using PERF, is there a way to get a sum of all of the instances that it returns? I'm looking to get the total GPU usage percentage, but this particular counter doesn't offer _Total. Instead, it returns a huge number of instances, and the GPU percentage seems to be the total of all of those instances. Here is the code I'm using:

PERF=path:\GPU Engine(*)\Utilization Percentage,display:%UtilizationPercentage%

   
Quote
Topic Tags
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1849
 

I could add a sum column but my question is: is the gpu utilisation really the sum total of each of those instances?   Looking at the instance names, I'm not so sure.


   
ReplyQuote
 MVS
(@mvs)
Active Member Registered
Joined: 5 months ago
Posts: 3
Topic starter  

@glenn Thank you for your reply. The code posted <a href=" removed link " target="_blank" rel="noopener">here sums up the instances (although it looks like it can be optimized a bit by using GPU Engine(*engtype_3D) instead of GPU Engine(*)), and the author says that it matches the total shown in Task Manager. I tested it a few times in PowerShell, and it seems to be pretty accurate.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1849
 

@mvs the hyperlink was removed...


   
ReplyQuote
 MVS
(@mvs)
Active Member Registered
Joined: 5 months ago
Posts: 3
Topic starter  

@glenn Oops, looks like I can't post links yet. If you go to SuperUser and search for "engtype_3D", the only result should be the code I was referring to.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1849
 

Posted by: @mvs

@glenn Oops, looks like I can't post links yet. If you go to SuperUser and search for "engtype_3D", the only result should be the code I was referring to.

Ok, I'm getting a better picture of that counter.  I imagine a sum function would return a single row that is the sum of all returned rows or possibly an "add-total" option that would insert a _total row where none exists.

 


   
MVS reacted
ReplyQuote
Glenn's Page