Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sitecore Pipelines admin tool :: Per Request Wall Time Summary
/*
Paste this into the dev tools console on sitecore/admin/pipelines.aspx for a summary of pipeline execution time per request
*/
(function() {
function pipelinesPerRequest() {
const pipelines = Array.from(document.querySelectorAll('.groupheader')).map(el => ({
pipeline: el.querySelector("*[pln-name]").innerText,
executions: parseInt(el.querySelector('*[title="#Executions"]').innerText, 10),
wallTime: parseInt(el.querySelector('*[title="Wall Time"]').innerText.replace(/[^\d\.]/g, ''), 10)
}))
const httpRequestBegin = pipelines.find(p => p.pipeline === "httpRequestBegin")
return pipelines.filter(p => p.executions >= httpRequestBegin.executions).map(p => ({
pipeline: p.pipeline,
wallTimePerRequest: p.wallTime / httpRequestBegin.executions
}));
}
console.table(pipelinesPerRequest())
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment