Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Starting the trace server automatically

Hi Alex,

Thanks for reaching out on this. We actually happened to start working on this feature recently. See [1] down below.

I'm currently at the stage of coming up with a new extension dedicated to the trace server. Goal being, to isolate the handling of the latter, so that other extensions such as [2] may piggy-back on its running instance.

The requirements details are in [1] but feel free to propose some more directly in it ([1]). I'm also keeping your good inputs below handy, for that matter.


Cheers,
/Marco


From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Alex Doan <vadoan@xxxxxxxxxxxxxx>
Sent: Wednesday, May 10, 2023 12:30 PM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Cc: Elena Laskavaia <ELaskavaia@xxxxxxxxxxxxxx>
Subject: [tracecompass-dev] Starting the trace server automatically
 

Hi, we have our extension hooked up so that when we open our custom trace file, it automatically starts the trace server. However we had an issue where if we click on the “Open with Trace Viewer” menu option contributed by vscode-trace-extension, the trace server will not be started, and we have to start the server manually. There are 2 solutions that I would like to propose to this problem:

 

  • Option 1: When clicking on this menu item, the vscode-trace-extension will also execute an unregistered command, with the file uri as argument. Our extension can register this command activate the server.
  • Option 2: We could implement the same server activation functionality on vscode-trace-extension, by adding a trace server path setting. When clicking on that option, the vscode-trace-extension will check if the server is running on url:port, if not, it will activate the server present in the path setting.

 

If you have any question, concern, suggestion about which of these solutions is implementable, please let me know. Thank you.

 

Regards,

 

Alex


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

Back to the top