]> granicus.if.org Git - clang/commit
[Support][Time profiler] Make FE codegen blocks to be inside frontend blocks
authorAnton Afanasyev <anton.a.afanasyev@gmail.com>
Mon, 19 Aug 2019 22:58:26 +0000 (22:58 +0000)
committerAnton Afanasyev <anton.a.afanasyev@gmail.com>
Mon, 19 Aug 2019 22:58:26 +0000 (22:58 +0000)
commit387fd059a36f735b46e4499e4aa2e1d2eb6db979
tree4f9eeca30364a07adc0010e3caade359bf42e3f2
parent6222dad7e29e843d8b03ce8050c10a2ced6c3a8c
[Support][Time profiler] Make FE codegen blocks to be inside frontend blocks

Summary:
Add `Frontend` time trace entry to `HandleTranslationUnit()` function.
Add test to check all codegen blocks are inside frontend blocks.
Also, change `--time-trace-granularity` option a bit to make sure very small
time blocks are outputed to json-file when using `--time-trace-granularity=0`.

This fixes http://llvm.org/pr41969

Reviewers: russell.gallop, lebedev.ri, thakis

Reviewed By: russell.gallop

Subscribers: vsapsai, aras-p, lebedev.ri, hiraditya, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D63325

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369308 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenAction.cpp
test/Driver/check-time-trace-sections.cpp [new file with mode: 0644]
test/Driver/check-time-trace-sections.py [new file with mode: 0644]