Giter Club home page Giter Club logo

cpp-build-insights-samples's Issues

Formatting Bug? LongModuleFinder

Hi! I was working on some of the samples and realized that there was a strange formatting error on LongModuleFinder

LongModuleFinder output:

LongModuleFinderScreenshot

The formatting issue can be seen on the right where the 2 from CL Invocation has no space between itself and Duration

Looking at the code, I see no reason why it should be formatting strangely since there are two tab escapes:

std::cout << "\t\tCL Invocation " << frontEndPassData.InvocationId << "\t\tDuration: " << frontEndPassData.Duration << " s " << std::endl;



Note: similar code can be found in the other analyzers as seen below (outputs in terminal as expected)

for (auto& frontEndPassData : sortedFrontEndPassData)
{
std::cout << "File Name: ";
std::wcout << frontEndPassData.Name;
std::cout << "\t\tCL Invocation " << frontEndPassData.InvocationId << "\t\tDuration: " << frontEndPassData.Duration << " s " << std::endl;
}

for (auto& frontEndPassData : sortedFrontEndPassData)
{
std::cout << "File Name: ";
std::wcout << frontEndPassData.Name;
std::cout << "\t\tCL Invocation " << frontEndPassData.InvocationId << "\t\tDuration: " << frontEndPassData.Duration << " s " << std::endl;
}

how to use the samples

hi,

i would like to try the samples. but im lost with documentation

image

the etl contins all needed file stuff etc! are the exes supose to do something?

Exception when running any samples

Exception thrown at 0x00007FFB309F3A22 (CppBuildInsights.dll) in TopHeaders.exe: 0xC0000005: Access violation reading location 0x0000000000000000. occurred

It appears to be triggered after all calls to OnStopFile (I think). I'm going to try to hack around it with some SEH in the meantime.

Call stacks are not consistent when getting this error - maybe uninitialized memory? Example from TopHeaders release build
CppBuildInsights.dll!00007ffb48163a22() Unknown
CppBuildInsights.dll!00007ffb48164874() Unknown
CppBuildInsights.dll!00007ffb48178119() Unknown
CppBuildInsights.dll!00007ffb4817c7d2() Unknown
CppBuildInsights.dll!00007ffb4817a0ed() Unknown

[Inline Frame] TopHeaders.exe!Microsoft::Cpp::BuildInsights::Analyze(const char *) Line 3376 C++
TopHeaders.exe!main(int argc, char * * argv) Line 171 C++

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.