profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Experiment with a command-line tool for querying profile contents

Open mstange opened this issue 2 months ago • 0 comments

Sometimes I've wanted to inspect profiles from the command line, without loading them in the web UI.

Here's an experiment I've been working on, which creates a pq tool ("profile query"). To test, clone this branch and run yarn build-profile-query-cli - this creates a ./dist/pq.js artifact. Then somehow make it accessible via your path, for example by putting a shell script with the contents node ~/code/profiler/dist/pq.js $@ into a bin directory in your path.

pq load 'https://share.firefox.dev/hash' or pq load profile.json.gz start a session.

Only tested on macOS so far. It uses unix domain sockets so it probably doesn't work on Windows atm.

mstange avatar Nov 06 '25 19:11 mstange