Skip to content

Add profile meta command to profiler-cli - #6177

Merged
canova merged 1 commit into
firefox-devtools:mainfrom
canova:cli-meta
Jul 15, 2026
Merged

Add profile meta command to profiler-cli#6177
canova merged 1 commit into
firefox-devtools:mainfrom
canova:cli-meta

Conversation

@canova

@canova canova commented Jul 14, 2026

Copy link
Copy Markdown
Member

Main | Deploy preview

Fixes #6165.

Expose the profile's metadata via a new profiler-cli profile meta command. It mostly mirrors the web UI's "Profile Info" panel. Groups into Recording, Application, Platform, Import, and free-form Extra sections.

Example output:

$ pq profile meta
[Thread: t-0 (GeckoMain) | View: Full profile | Full: 6.639s]

Recording:
  Started: 2026-06-17T16:21:26.825Z
  Duration: 6.639s
  Sampling interval: 1ms
  Buffer capacity: 1GB
  Symbolicated: yes
  Features: js, screenshots, stackwalk, cpu, processcpu, memory, jssources
  Threads filter: GeckoMain, Compositor, Renderer, SwComposite, DOM Worker, onnx_worker, llama.cpp

Application:
  Name: Firefox 154 (build 20260617101013)
  Uptime: 2h13m
  Update channel: nightly
  Build type: opt
  Source URL: https://hg.mozilla.org/mozilla-central/rev/41bab63bf46ac59a75d77e8dd277c8278072417d

Platform:
  OS: macOS 26.4.1 (aarch64-gcc3)
  CPU: Apple M5 Max (18 physical, 18 logical cores)

@canova
canova requested review from fatadel and mstange July 14, 2026 11:04
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.30435% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.64%. Comparing base (1373a9d) to head (1c58a3d).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/profile-query/formatters/profile-meta.ts 93.33% 6 Missing ⚠️
src/profile-query/index.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6177      +/-   ##
==========================================
+ Coverage   83.62%   83.64%   +0.01%     
==========================================
  Files         345      346       +1     
  Lines       37051    37143      +92     
  Branches    10270    10408     +138     
==========================================
+ Hits        30983    31067      +84     
- Misses       5640     5648       +8     
  Partials      428      428              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Expose the profile's metadata via a new `profiler-cli profile meta`
command. It mostly mirrors the web UI's "Profile Info" panel. Groups
into Recording, Application, Platform, Import, and free-form Extra
sections.
@canova
canova enabled auto-merge (squash) July 15, 2026 10:47
@canova
canova merged commit bd2a5cf into firefox-devtools:main Jul 15, 2026
21 checks passed
@canova canova mentioned this pull request Jul 21, 2026
canova added a commit that referenced this pull request Jul 21, 2026
Changes:

[Sky Ning] Skip preview links for non-main PRs (#6161)
[spokodev] fix(gecko-upgrade): don't crash on a counter with empty
sample_groups (#6160)
[fatadel] Show counter values over time in profiler-cli (#6136)
[Markus Stange] Make profile-conversion snapshots more compact and
meaningful (#6152)
[Markus Stange] More typed arrays: sample + counter times, some
frametable columns (#6139)
[Nazım Can Altınova] Only render a marker url field as a link when the
whole value is a URL (#6163)
[fatadel] Show each counter's owning process in profiler-cli (#6164)
[Nazım Can Altınova] Document the pre-existing thread info and network
JSON schemas in the cli (#6171)
[Markus Stange] Copy column contents in
getRawSamplesTableBuilderFromExisting for consistency (#6168)
[Markus Stange] Convert eligible columns to typed arrays when outputting
from profiler-edit (#6167)
[Markus Stange] Remove unused samples.thread column (#6151)
[Markus Stange] Fixed botched merge which broke 'yarn ts' (#6174)
[Nazım Can Altınova] Add marker handles to `profiler-cli thread network`
(#6172)
[Markus Stange] Update json-slabs 0.3.0 → 0.4.0 (major) (#6176)
[Nazım Can Altınova] Surface network activity across profiler-cli
(#6175)
[Nazım Can Altınova] Add `profile meta` command to profiler-cli (#6177)
[Markus Stange] Allow raw marker table's `startTime` and `endTime`
columns to be Float64Array (#6169)
[nightcityblade] Fix light theme text selection colors (#6186)
[Nazım Can Altınova] Import source map URLs from Chrome DevTools traces
(#6190)
[Nazım Can Altınova] Rename yarn `build-profiler-cli` script to
`build-cli` (#6191)
[Nazım Can Altınova] Migrate husky to version 9 (#6201)
[Nazım Can Altınova] Fix horizontal overflow when the transform
navigator is long (#6199)
[fatadel] Add a 'hexadecimal' marker schema field format (#6197)
[Nazım Can Altınova] Bump source-map to 0.8.0 and remove the old type
workaround (#6202)
[Nazım Can Altınova] 🔃 Sync: l10n -> main (July 21, 2026) (#6209)


And special thanks to our localizers:

fr: parmegiani.thomas
fr: Théo Chevalier
sr: Марко Костић (Marko Kostić)
sv-SE: Luna Jernberg
tr: Grk
zh-CN: Ariel
zh-CN: Olvcpr423
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose profile metadata in the cli with something like pq profile meta

2 participants