Skip to content

qt-core: Add Qt Profiler web application - #619

Draft
benchoq wants to merge 1 commit into
qt-labs:devfrom
benchoq:ben_1117_qtprofiler_support
Draft

benchoq wants to merge 1 commit into
qt-labs:devfrom
benchoq:ben_1117_qtprofiler_support

Conversation

@benchoq

@benchoq benchoq commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Add a new webview for the Qt Profiler WASM version. This webview wraps the Qt Profiler in a simple Svelte application and is registered as a custom editor for .qtd and .qzt files.

QML traces are read by the backend and posted to the Svelte application. The WASM then starts with the data preloaded using the FS module. A loading mask is shown while the trace data loads and the WASM starts.

The web app reloads when the color scheme changes to keep it in sync with VS Code. window.open is overridden to handle documentation open requests from the Qt Profiler UI.

Stdout and stderr are sent to the backend, which writes them to the logger.

This commit also adds two configuration items:

  • openSourceFile: decides whether to try to open source files
  • additionalBuildDirs: specifies additional directories to search for source files, in addition to the current workspace. Files are searched when the Qt Profiler emits an event.

@benchoq
benchoq force-pushed the ben_1117_qtprofiler_support branch 2 times, most recently from 12d7ce2 to 0af2c47 Compare November 17, 2026 12:39
Add a new webview for the Qt Profiler WASM version.
This webview wraps the Qt Profiler in a simple Svelte application and
is registered as a custom editor for .qtd and .qzt files.

The Qt Profiler WASM and its related files are copied from its `dist`
to `res/others/qtprofiler` when `npm run compile` runs.

QML traces are read by the backend and posted to the Svelte application.
The WASM then starts with the data preloaded using the FS module.
A loading mask is shown while the trace data loads and the WASM starts.

The web app reloads when the color scheme changes to keep it in sync with
VS Code. `window.open` is overridden to handle documentation open requests
from the Qt Profiler UI.

Stdout and stderr are sent to the backend, which writes them to the
logger.

This commit also adds two configuration items:
- `openSourceFile`: decides whether to try to open source files
- `additionalBuildDirs`: specifies additional directories to search for
  source files, in addition to the current workspace. Files are searched
  when the Qt Profiler emits an event.
@benchoq
benchoq force-pushed the ben_1117_qtprofiler_support branch from 0af2c47 to e137eef Compare November 18, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant