Viladoman / CompileScore

Tools for profiling and visualizing C++ build times.
MIT License
460 stars 19 forks source link

Problems with getting data into VS extension #1

Closed kamrann closed 4 years ago

kamrann commented 4 years ago

So I think there are perhaps a couple of different issues. I loaded up the test project (built as-is with Clang 10) one further time, and without having changed anything this time it correctly displayed the data (I'd previously rebuilt the project and restarted VS a couple of times without any luck, despite the parsing reporting success). So I guess maybe there's just some unpredictability relating to VS extension initialization order? If it was possible to enable more logging it might help pin down things like that.

As for my own project, built using a source-built pre-Clang 11, I'm still seeing the source files displayed but with no numbers. Attaching an example json file from the Clang output - I can see one additional field that didn't show up in the test project output, but it doesn't look like that would be an issue. Otherwise the format appears the same, but I may be missing something. no_data api_alloc.cpp.json.zip

Viladoman commented 4 years ago

Thanks for giving the sample json as I don't have Clang 11 locally. I could pinpoint a couple of issues in the extractor.js ( I was assuming tid 0 and also the event 'thread_name' was messing around the data ). This ended up into not loading any event at all. I already submitted the fixes for the DataExporter and it should work now.

About the plugin issue: I still have to investigate it.

FYI, The folders for the dataextractor and TestProject changed a bit but everything should still be working ( I am starting a c++ data extractor option ).

Let me know if the issue got fixed.

kamrann commented 4 years ago

Yep, getting data on my project now, thanks! Going to take me a fair while to understand how to interpret it all, but this looks great.

A couple of other things, I'll just note here rather than opening individual issues:

Let me know if I can help with any more info/testing.

Viladoman commented 4 years ago

Thanks, I really appreciate your help and it actually helps me find issues faster.

Let me know if updating the extension to v1.2.5 fixed the crashes and search issues.

kamrann commented 4 years ago

Yep, those issues seem to be sorted now!

Viladoman commented 4 years ago

I am glad to hear that. Thanks for the help. I will close this issue and move the remaining suggestions to the TODO list.