Repository navigation
Closed
Description
Thanks for creating trace-engine-cli, I did a blind test between "investigate this trace" vs. "investigate this trace with trace-engine-cli" and it found more things (I would also have found) with the engine. That's really nice.
I asked my agent which papercuts it hit, also in comparison to other tools (https://github.com/TomerAberbach/profiler-md/, https://github.com/Conor-Hinchee/heap-analyzer, https://github.com/platformatic/flame). Versions: trace-engine-cli 0.2.0 (bundles @paulirish/trace_engine 0.0.65), Node 24.22.3, traces from Chrome 156. If you need traces for 1, 4, 5 I can DM them (but not make them public, sorry).
Blocking or misleading
- Browser-level traces are rejected. A trace started with
Tracing.starton the browser CDP connection fails every command exceptscanwithError: No frames found in trace data. The cause isMetaHandler.js:168:TracingStartedInBrowserhas no frame list. The message does not say that tracing must start on a page target. - Out-of-process iframes are not covered.
tasks,profileand the main-thread breakdown contained no URL from our cross-origin canvas frame, whilenetworkdid list its requests. I found no flag to pick a process, thread or frame, and the README does not mention frames. This is inferred from the output, not read in the code. - Missing trace categories give silent empty results. Without the
loadingcategory,shiftsreturnsclusters: [], the same as "no shifts". Without CPU samples, every long task isRunTask > FunctionCallwithnullurl.overviewreportswarnings: []in both cases. mainThreadBreakdownchanges meaning with CPU samples. For the same kind of page open,scriptingMswas 379 without samples and 8.72 with them, andsystemMswent from 733 to 1,834.insightsdisagrees withoverview.lcpBreakdownis all 0 /nullandnavigationIdisnull, whileoverviewhas an LCP of 1,029 ms.clsCulpritshasculpritNodes: []whileshiftslists three culprits.
Smaller ones
- Long task rows name no JS function even with samples. They read
RunTask > v8.callFunction, urlnull. I did not try--time-rangeper task to work around it. tasks --tree top-downreturns two rows. They areRunTaskandset 3073d6be115b6a24.tasks --tree bottom-upleads with native entries. The first 20 rows wereRunTask,V8Console::runTaskandv8::Debugger::AsyncTask*; app code needed--top 80. I found no option to show only frames with a URL.- The bottom-up
startTimeMscolumn is the trace start on every row. findonly searches by function name.find --url <pattern>fails withError: Missing required argument: function.networkprints full URLs with query strings. Ours included a token; an option to drop query strings would help for output that goes into alerts.insightslists the page's own origin underthirdParties. Here that wasframer4.localhost.- Each command parses the trace again. On a 103 MB trace that is 5-6 s and 1.7-1.8 GB of memory per command, so about 21 s for overview, tasks, shifts and network. I did not find a way to get several analyses from one parse.
- Layout shift nodes have no identity.
tagName,selectoranddebugNamearenull(Node #26). This may be a limit of saved traces rather than of the CLI.
Metadata
Metadata
Assignees
Labels
No labels
Activity