Comments (7)
Hi Ramon,
thanks for the quick response. Yes, you were right, the extraction is the one causing problems, .etl
file is created successfully.
I will try to analyze the extraction issue as you proposed, will get back to you with more infos. But this will probably take a few days.
Cheers,
Benjamin
PS: I could not find information about why ScoreGenerator needs to be started in elevated mode. Did not seem to make a difference in my environment?
from compilescore.
Sorry for the delay.
I just ran ScoreDataExtractor in Debug mode and reproduced the crash, only to find out that someone else has reported the same bug, just with more detailed information.
So, same here: OnCompilerPassStart()
is being called with activity.InputSourcePath
and activity.OutputObjectPath == nullptr
Benjamin
from compilescore.
I think I got a workaround for the issue with the missing activity names meanwhile it is not fixed in the SDK.
FYI, I left a more detailed information of the workaround in the other issue thread
Whenever you have time could you validate if the profiler works on version 1.5.6 when using the /MP ( which was the root cause of the SDK not giving up the path names ).
Thanks for the investigation, I really appreciate it.
from compilescore.
Hey Ramon,
workaround seems to have fixed it. At least it did not crash anymore, though I did not look into the results, yet. Will do that later.
Benni
from compilescore.
Works perfectly!
Thanks alot!
Benni
from compilescore.
Sorry about that. Sadly, there is not much information I can use to pinpoint the issue.
In order to narrow it down, I would recommend to do the following steps:
ScoreDataExtractor.exe -msvc -start
- Build your sources
ScoreDataExtractor.exe -msvc -stop -o <yourfolder>\output.etl
(this will store the event capture in an event trace log format. Which can be later processed)ScoreDataExtractor.exe -msvc -extract -i <yourfolder>\output.etl -o <yourfolder>\output.scor
(this will process the event trace log into the aggregated scor file)
This way we can see what is the problematic step (gathering or processing)
I am pretty sure it is failing in the extraction/processing part (as the first one is mainly MS Build insights sdk calls for msvc), but always good to double check.
If the extractor is the one crashing I would then recommend to just clone this repo, open the DataExtractorSolution, Go to the Project Settings - Debugging and use the command arguments from the last step. This way we will get a callstack. Also, because the data is already in the etl file VS does not need to run in Admin mode.
Thanks for your help. Please let me know the outcome.
from compilescore.
No rush! Let me know what you find in there.
I checked what you are mentioning about the elevated mode and you are right, maybe MS updated their Build insights to not require it anymore and I was still under the impression it was mandatory. I will run some tests and remove the elevated requirement if it is not needed anymore.
Thanks for letting me know!
Edit: After several tests... I will remove the elevated restriction as apparently it is not needed anymore! Good news! :)
from compilescore.
Related Issues (20)
- Compile Score Timeline has unrelated files listed HOT 4
- Includes aren't included in the CompileScore output for Clang -ftime-trace HOT 2
- Feature Request: Support Zooming in/out of the timeline view with the mouse-wheel HOT 1
- Not seeing output building using VC menu with Make and clang HOT 7
- Average time in Compile Score Timeline HOT 3
- Problems with multiple header files with same name HOT 3
- Feature: exclusive time counts HOT 6
- Incredibuild (or other distributed compilation) support HOT 1
- Clash of colour highlighting with git diffs HOT 2
- Does this plugin works on Linux or Mac ? HOT 4
- Two header with the same filename are considered being the same file in include view HOT 2
- UX improvements
- aggregate template instantiations HOT 10
- option to save the recorded etl / to open it in WPA HOT 2
- Show absolute path for includes HOT 5
- System.Runtime.InteropServices.COMException on 'Copy Full Path' and 'Copy Name' HOT 1
- Keep previous results and compare HOT 3
- Extension crashes after changing a solution configuration HOT 1
- Getting "[ERROR] input path is not a directory" HOT 5
- release packaging HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compilescore.