18 Jun 2024 02:23 PM
What would be the best way to pull task manager browser metrics? We are getting complaints of slowness from clients using the Salesforce Saas offering and would like to see if this is due to some sort of resource limits of the browser. Is there a best way to get task manager metrics sent to Dynatrace?
Solved! Go to Solution.
13 Jul 2024 09:32 AM
I understand that you're looking to obtain resource usage metrics for your Salesforce webpage from Performance Monitor Tool, such as:
My recommendations are:
function getPerformanceMetrics() {
const metrics = {
cpuUsage: window.performance.memory.jsHeapSizeLimit, // Use a placeholder as there's no direct API for CPU usage
jsHeapSize: window.performance.memory.usedJSHeapSize,
domNodes: document.getElementsByTagName('*').length,
};
return metrics;
}
13 Jul 2024 09:37 AM
hi @rseibert1
I hope my answer was helpful.
18 Jul 2024 06:55 PM
Thanks for the possible solution, I think we will end up building an extension that can pull memory and cpu metrics of the browser (sorry if this requirement was not clear, think I misunderstood original requirement). The team members are logging into salesforce from browsers on their Citrix desktops.
13 Jul 2024 06:01 PM - edited 13 Jul 2024 06:01 PM
There are two Salesforce extensions in the Dynatrace Hub that might help:
https://www.dynatrace.com/hub/?query=salesforce
Please beware you have to have additional add-ons from Salesforce for these to work...