GithubHelp home page GithubHelp logo

eclipse-cdt-cloud / vscode-trace-extension Goto Github PK

View Code? Open in Web Editor NEW
6.0 10.0 18.0 1.61 MB

Trace viewer extension for Eclipse Theia applications and VSCode compatible applications, that uses the Trace Server Protocol (TSP)

License: MIT License

TypeScript 91.62% HTML 1.84% JavaScript 4.22% CSS 2.31%
typescript vscode vscode-extension trace trace-viewer trace-visualization tsp eclipse eclipse-foundation eclipse-theia

vscode-trace-extension's People

Contributors

alexdoanbb avatar bhufmann avatar dependabot[bot] avatar dleclairbb avatar hoangphameclipse avatar hriday-panchasara avatar marcdumais-work avatar marco-miller avatar matthewkhouzam avatar ngondalia avatar patricktasse avatar rodrigoplp-work avatar tahini avatar williamsyang-work avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-trace-extension's Issues

Add missing toolbar buttons

The trace-viewer widget toolbar is missing the following buttons: Undo, Redo, Zoom In, Zoom out, Keyboard shortcuts

Screen Shot 2023-03-16 at 3 04 01 PM

Set keyboard focus on graph/table when selecting an analysis

PR 612 in theia-trace-extension (eclipse-cdt-cloud/theia-trace-extension#612) provides the following features:

  • Keyboard focus (indicated by a blue/orange border) is given to an output when its opened for the first time
  • When clicking on an analysis title in the trace tab, keyboard focus should be the analysis' graph/chart region.
  • If a View that is already open is selected in the sidebar, the View's title area should pulse to temporarily bring attention to the View panel. Keyboard focus is also given to the analysis' graph/chart region.

Not all features provided by this patch work in vscode-trace-extension. Replicate the missing functionality

Add Item Properties view

The theia-trace-extension currently has a separate view in the explorer (left side) that populates upon selection in the graphs. For example, selecting an event in the Events Table the details will listed there. This should be supported in this project as well. An additional web-view needs to be implemented for that. Note that the traceviewer-react-components needs to provide the view implementation so that the web-view only need so use it and provide UI controls.

image

Migrate view toolbar menus

The theia-trace-extension provides different toolbar buttons for the widget view (where the graphs are loaded). This is Theia specific and doesn't exist in the VsCode version.

To support the same functionality this needs to be added to the vscode-trace-extension.

First, it' needs to be investigated if it's the VsCode APIs allows it to add toolbar buttons. If yes, the functionality can be implemented using VsCode APIs. If not then the functionality needs to be added in a different way (maybe as part of the react-components).

Note: Move as much code to the theia-trace-extension repository in the Theia independent packages (traceviewer-react-components and traceviewer-base-components) for code-re-use purposes.

Trace Viewer widgets
image

Default data provider of Overview View is hard-coded

The default data provider ID of the Overview View is hard-coded to the histogram XY chart of the Trace Compass trace server. The default data provider ID should not be hard-coded, but should be configurable using a preference.

Note: The end-user has now way to know what the IDs of the available XY views are. So, the ID is probably not the best thing to have a preference for.

Migrate start and stop of trace server using the backend

In the theia-trace-extension it's possible to start/stop the trace server from the Theia backend. The command Start trace server and respectively Stop trace server exist that starts/stops the trace server configured by the preferences in the theia-trace-extension. This functionality was discussed in eclipse-cdt-cloud/theia-trace-extension#53 which references the initial implementation of the feature. The start command is also triggered when trying to open a trace with the theia-trace-extension.

For the vscode-trace-extension, a similar support is needed to start/stop the server for both the local and remote cases.

Note: Installing the vscode-trace-extension in VsCode and Theia applications should work by the update.

Also supporting a TRACE_SERVER_URL environment variable is out of this scope for now, if ever required (not yet).

Fix style of DATA_TREE component

The style of the DATA_TREE component seems to be off and not the same as in theia-trace-extension. The styles need to fixed.

vscode-trace-extension
image

In comparison the theia-trace-extension
image

Migrate Overview view functionality

In the recent Theia trace extension, an Overview view was added. While the TraceContextComponent can display the overview view, however the construction of this component has to be done properly to pass the default overview descriptor. Other items to verify and support:

  • Open and Close of overview view
  • Selecting of data provider for overview view
  • Menu styling

image

Support of changing the theme

Changing the light theme in VsCode doesn't pass the change on to the react-components. This needs to be implemented

vs-code-light-theme
.

Display the status of the trace server

When the theia-trace-extension shows the status of the of the server connection. When sending a back-end command, and if fails due to connection issues the status is updated to a red x. If it is successful the status is shown green. This should be provide here as well.

An additional web-view needs to be implemented for that. Note that the traceviewer-react-components needs to provide the view implementation so that the web-view only need so use it and provide UI controls.

image

Update how component styles are defined

Right now the styles are provided by css files stored here [1]. Not all values are defined in here and need to be added.

Theia theme variables are used because the traceviewer-react-components are using these variable name. This approach work, however, we should not use Theia names here. The variables in the components should have Theia or VsCode independent names and depending on if the components run in Theia or VsCode the mapping is defined there.

[1] https://github.com/theia-ide/vscode-trace-extension/tree/master/vscode-trace-webviews/src/style.

Fix support for resizing of charts

When resizing the application then the graph is not updating it's size. Also, resizing each graph vertically using the botton-right corner is not available.

resize-chart-vscode

Migrate support of trace/experiment opening

In the theia-trace-extension it is possible to select a directory or trace from the file explorer and execute "Open with -> Trace Viewer". After executing this the Trace Explorer is populated.

When no Trace is open, the "Open Trace" button is shown in the Trace Explorer and upon pressing the button the user can select a directory to find and open traces.

When executing that command, the command execution finds all CTF traces recursively in the directory and opens them in an experiment on the trace server. If the selection is a single file, then that file is opened as trace.

The trace tree in the trace explorer should show all openable traces

Now, only the top level directories of the workspace are shown and can be opened.

First step would be a smarter discovery of traces: go deep in the tree to locate potential traces and CTF folders and show the structure as a tree so that upper directories can be opened along with the traces underneath.

vscode-trace-extension not working with latest trace-viewer depenencies

With the recent updates in the trace viewer components and its dependencies to use BigInt for timestamps, the serialization of messages between the webviews and vscode extension will fail because the standard json serializer doesn't support type BigInt.

It will fail with the following message:

TypeError: Do not know how to serialize a BigInt
/usr/share/code/resources/app/out/bootstrap-fork.js:5
stack trace: TypeError: Do not know how to serialize a BigInt
	at JSON.stringify (<anonymous>)
	at y (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89:3480)
	at g.postMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:96:73489)
	at TraceViewerPanel.setExperiment (/home/eedbhu/git/vscode-trace-extension/vscode-trace-extension/lib/trace-viewer-panel/trace-viewer-webview-panel.js:125:29)
	at /home/eedbhu/git/vscode-trace-extension/vscode-trace-extension/lib/trace-explorer/trace-tree.js:123:19
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

For example the Experiment or Trace classes contain timestamp fields which are BigInt and causing serialization problems and the vscode trace extension to fail.

To fix this, each message send between webviews and the vscode trace extension itself need to be updated that BigInt values are serialized properly (e.g. using a string) and deserialized to BigInt on the receiving side.

This issue needs to be fixed before upgrading to the latest traceviewer components which contain many valuable improvements.

Contribute vscode-trace-extension repository to the Eclipse CDT-cloud project

Hello,

The Trace Compass team would like to contribute the vscode-trace-extension to the Eclipse CDT.cloud project [1] so that the further development can be done under the Eclipse open source foundation. The Eclipse CDT.cloud is already the home of the main components that are used by the vscode-trace-extension.

The goal of this project is to provide the trace-viewer capabilities as VS Code plugin so that all VS Code compatible editors like Theia, VSCodium, VS Code etc. can install and take advantage of the trace viewer functionality and not "just" Theia based products. There has been also an increasing interest of this VS Code plug-in in the community.

The vscode-trace-extension repository only contains code to integrate with VS Code APIs. All core, trace-viewing source code are provided by the Theia-independent components of theia-trace-extension [2] which are deployed to NPM [3] and [4].

I'd like to start the contribution process in the coming week(s). Please let me know if you have any questions and concerns.

Best Regards
Bernd

[1] https://github.com/eclipse-cdt-cloud
[2] https://github.com/eclipse-cdt-cloud/theia-trace-extension
[3] https://www.npmjs.com/package/traceviewer-base
[4] https://www.npmjs.com/package/traceviewer-react-components

Export to CSV not working (DATA_TREE views)

Export to CSV is not working in VsCode for views of type DATA_TREE, which are, for example, be used for Latency views when using Trace Compass server. The gif shows how to trigger it, but there is no way to know if it was successful, what the filename is and where it's stored (if actually was executed)

vscode-export-cvs-bug

Migrate health check

The health check functionality to check if the trace server is running needs to be migrated. Call heath check functionality before opening a trace.

Support for view markers

The theia-trace-extension added support for viewer markers that can be retrieved from the trace server (e.g. fetchAnnotationCategories/fetchAnnotation). Make sure that this data is populated in the vscode-trace-extension. If it's currently not populated, implement the support.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.