phyronnaz / uecompiletimesvisualizer Goto Github PK
View Code? Open in Web Editor NEWDebug compile times in Unreal Engine & MSVC projects
License: MIT License
Debug compile times in Unreal Engine & MSVC projects
License: MIT License
In UEBuildWindows.cs, the DefaultVisualStudioToolchainVersion is set to 14.13.26128 which is under the required version in VCToolChain.cs of 14.14.26316
It would be useful to update the UE4 setup instructions to make sure that the toolchain default is set to >= 14.14.26316 or that the default toolchain is uninstalled prior to building, otherwise you get an output that skips the Include/Function sections and breaks the python parser.
Hi
I'm trying your tool with MSVC 2017(v141) and get the following issues
MSVC log file detected main.cpp Parsing includes... Parsing 48 items... Includes parsed! Parsing classes... Parsing 510 items... Classes parsed! Parsing functions... Parsing 204 items... Functions parsed! Traceback (most recent call last): File "main.py", line 335, in <module> parse_beginstring("time(") File "main.py", line 188, in parse_beginstring assert line.startswith(string), "{} does not start with {}".format(line, string) AssertionError: crc.cpp does not start with time(
When I patch the script by
if try_parse_string("time("): parse_beginstring("time(")
adding on line 355 I get this
Traceback (most recent call last): File "main.py", line 276, in <module> assert False, "Invalid file name: " + line AssertionError: Invalid file name: Generating Code...
My log file at that stage looks like this:
` time(C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\c1xx.dll)=1.29531s < 90845892721 - 90850567985 > [A_PATH_TO_A_FILE.cpp]
Generating Code...
Code Generation Summary
Total Function Count: 182
Elapsed Time: 0.010 sec
Total Compilation Time: 0.034 sec
Average time per function: 0.000 sec
Anomalistic Compile Times: 3
SOME LINKER WARNINGS
RdrReadProc Caching Stats
Functions Cached: 0
Retrieved Count: 0
Abandoned Retrieval Count: 0
Abandoned Caching Count: 0
Wasted Caching Attempts: 0
Functions Retrieved at Least Once: 0
Functions Cached and Never Retrieved: 0
Most Hits:
Least Hits: `
Am I inadvertently adding any flags that change the output?
Hi, thank you for the tool. Just checked out it on the following project. (As a matter of fact, compiler and linker options are currently commented in "premake.lua")
repository, in case one wonders
and one of the logs demo_game.log
Excerpt from the "main.py" output:
Traceback (most recent call last):
File "main.py", line 276, in <module>
assert False, "Invalid file name: " + line
AssertionError: Invalid file name:
However I figured to replace "assert False ..." line with mere "continue" and successfuly got all respective "*.csv" files. So, no sweat =)
Hi, I have a Qt project with precompiled headers and for my output, I end up with an assert:
Parsing includes...
Traceback (most recent call last):
File "main.py", line 278, in <module>
includes_tree = parse_section(current_file, get_include_name)
File "main.py", line 226, in parse_section
count = parse_count()
File "main.py", line 111, in parse_count
return parse_int("Count:")
File "main.py", line 95, in parse_int
assert string in line, "{} not in {}".format(string, line)
AssertionError: Count: not in cl -c -Yc -Fprelease\Base_pch.pch -Forelease\Base_pch.obj /Bt+ /d2cgsummary /d1reportTime /std:c++17 -DNDEBUG /Fdrelease\Base.vc.pdb -TP ..\..\src\Base\stable.h
I've attached the beginning of the log: sample_log.txt
Thanks for looking into it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.