Heimdall Query
An analysis tool for heimdall trees.
Installation
npm install heimdall-query --save-dev
Analyzing A Heimdall Tree
TODO: There are a few limitations here at the moment in how you need to construct your test scenarios for the browser runner to work.
Example Using
const config = ;const CACHE_DIR = processargv2 === '-c' ? processargv3 : '.';const path = ;const cachePath = path;const run = ; ;
Example Config
moduleexports = runs: 5 domain: 'http://localhost:4200/' slugs: "query?modelName=complex&limit=100" ignoreBranches: // 'adapter._makeRequest', // 'InternalModel._materializeRecord' stats: key: "stats.self.selfTime" name: 'Count' rollup: false { return c;} key: "stats.self.selfTime" name: 'Self Time' rollup: false key: "stats.self.selfTime" name: 'Total Time' rollup: true key: "stats.self.selfTime" name: 'Throughput' rollup: false { return ` ops/ms`;} browser: "chrome" name: "Performance Analysis" compressAfter: 10 maxDepth: 25 collapseByName: true finderPath: "my-root-node";