Add output to llvm::errs() when -ftime-trace option is enabled,
add regression test checking this option works as expected.
Details
- Reviewers
thakis aganea - Commits
- rG7599da571886: [Support][Test] Time profiler: add regression test
rC363036: [Support][Test] Time profiler: add regression test
rL363036: [Support][Test] Time profiler: add regression test
rG44282a60c90f: [Support][Test] Time profiler: add regression test
rC362821: [Support][Test] Time profiler: add regression test
rL362821: [Support][Test] Time profiler: add regression test
rG96c421ddacdc: Revert rL362792 : [Support][Test] Time profiler: add regression test
rL362816: Revert rL362792 : [Support][Test] Time profiler: add regression test
rC362816: Revert rL362792 : [Support][Test] Time profiler: add regression test
rGf2ddd608367b: [Support][Test] Time profiler: add regression test
rC362792: [Support][Test] Time profiler: add regression test
rL362792: [Support][Test] Time profiler: add regression test
Diff Detail
- Repository
- rL LLVM
Event Timeline
Could you please move the test to a more approriate location? (ie. clang/trunk/test/Driver/)
clang/tools/driver/cc1_main.cpp | ||
---|---|---|
245 ↗ | (On Diff #199499) | This seems a bit too chatty. Suround these two lines with if (Config->Verbose) ? |
llvm/test/Support/check-time-trace.cxx | ||
4 ↗ | (On Diff #199499) | I don't see any other -ftime-trace tests, I would add a few more exhaustive file format checks here. |
Thanks, I've moved it there.
clang/tools/driver/cc1_main.cpp | ||
---|---|---|
245 ↗ | (On Diff #199499) | I don't think it should be done this way for several reasons:
|
llvm/test/Support/check-time-trace.cxx | ||
4 ↗ | (On Diff #199499) | Ok, I've added more checks, parsing json file by python. |
cfe/trunk/test/Driver/check-time-trace.cpp appears to fail on Darwin. Did you mean to pass the target explicitly ?
cfe/trunk/test/Driver/check-time-trace.cpp | ||
---|---|---|
1 | This test should probably have // REQUIRES: shell |
This commit is reverted now. How can I pass the target explicitly?
cfe/trunk/test/Driver/check-time-trace.cpp | ||
---|---|---|
1 | Thanks! I haven't found REQUIRES: shell here: https://llvm.org/docs/CommandGuide/FileCheck.html. Does this directive mean the target OS must have utils like awk and xargs? |
This test should probably have // REQUIRES: shell