powersync-js icon indicating copy to clipboard operation
powersync-js copied to clipboard

[Experimental] Log profiling output to the console

Open rkistner opened this issue 1 year ago • 1 comments

Builds on #229.

This outputs any queries over a certain threshold to the console when debugMode is enabled.

If the runtime was over another (higher) threshold, EXPLAIN QUERY PLAN output is additionally added.

This can be quite verbose, and the thresholds are rather arbitrary. We'd need to consider what should be logged by default, and what should be configurable.

Sample output for the diagnostics app (partially expanded): image

rkistner avatar Jul 16 '24 12:07 rkistner

⚠️ No Changeset found

Latest commit: ad31b391bbe2eef5dbe589795d60229e97afeb41

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Jul 16 '24 12:07 changeset-bot[bot]

Superseded by #760

rkistner avatar Nov 06 '25 12:11 rkistner