powersync-js
powersync-js copied to clipboard
[Experimental] Log profiling output to the console
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):
⚠️ 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
Superseded by #760