aras-p / ClangBuildAnalyzer

Clang build analysis tool using -ftime-trace
The Unlicense
1.02k stars 65 forks source link

Fails on very large capture files #1

Closed Tridacnid closed 5 years ago

Tridacnid commented 5 years ago

We ran this on a large codebase and the final capture file was 3.8GB. After several seconds, the analyze phase fails with the output:

Analyzing build trace from './results'...
ERROR: JSON parse error expected end of input.
  no trace events found.

The ./results file appears to be intact. Running the tool on a smaller subset of our codebase worked just fine.

Thanks for the great project! It's already helping us immensely.

Tridacnid commented 5 years ago

Turns out there was an extra curly brace in one of our .json files from clang. Removing that and rerunning --stop and --analyze works great.