eclipse-archived / codewind-node-profiler

Provides automatic code highlighting of 'hot' node.js methods
https://codewind.dev
Eclipse Public License 2.0
0 stars 15 forks source link

Unable to use with appsody applications in vscode #5

Closed csantanapr closed 5 years ago

csantanapr commented 5 years ago

Using VSCode Codewind node.js profiler with appsody app it doesn't highlights the code with profiling metadata

Steps to reproduce:

app.get('/', (req, res) => { res.send("Hello from Appsody!"); });

module.exports.app = app;


Problem:
No performance/profiling metada shows up

I think it doesn't work because the profile file `load-test/###/profiling.json` has the file path starting in `/project/user-app/app.js` and the `/parent/user-app` doesn't exist in the appsody root directory for the app locally in vscode
  {
    "self": 1702,
    "parent": 1701,
    "file": "/project/user-app/app.js",
    "name": "app.get",
    "line": 3,
    "count": 3
  },

The root of the appsody app only contains `app.js` and `package.json`
csantanapr commented 5 years ago

I tried replacing /project/user-app/app.js with /app.js in all the profiling.json files, and I still don't get any metadata when open app.js and hover the mouse or put the cursor on lines 3 or 4

tetchel commented 5 years ago

Issue moved to eclipse/codewind #533 via ZenHub