Bikramjeet Vig has uploaded this change for review. ( http://gerrit.cloudera.org:8080/9960
Change subject: IMPALA-6120: Add thread timers for reporting codegen time ...................................................................... IMPALA-6120: Add thread timers for reporting codegen time Add thread times for accurate reporting of codegen time. Also cleaned up a few places where time elapsed was being counted twice. Sample Profile: Query: SELECT count(*) FROM tpch_parquet.lineitem WHERE l_partkey in (1,6,11,16,21,26,31,36,41); CodeGen:(Total: 35.377ms, non-child: 35.377ms, % non-child: 100.00%) - CodegenTime: 328.869us - CompileTime: 2.163ms - LlvmThreadInvoluntaryContextSwitches: 6 (6) - LlvmThreadTotalWallClockTime: 35.698ms - LlvmThreadSysTime: 3.584ms - LlvmThreadUserTime: 29.555ms - LlvmThreadVoluntaryContextSwitches: 0 (0) - LoadTime: 0.000ns - ModuleBitcodeSize: 2.26 MB (2373148) - NumFunctions: 22 (22) - NumInstructions: 381 (381) - OptimizationTime: 21.881ms - PeakMemoryUsage: 190.50 KB (195072) - PrepareTime: 11.147ms Sample Profile with an added 2 sec sleep time to "OptimizationTime": CodeGen:(Total: 2s037ms, non-child: 2s037ms, % non-child: 100.00%) - CodegenTime: 386.948us - CompileTime: 2.032ms - LlvmThreadInvoluntaryContextSwitches: 0 (0) - LlvmThreadTotalWallClockTime: 2s037ms - LlvmThreadSysTime: 0.000ns - LlvmThreadUserTime: 37.672ms - LlvmThreadVoluntaryContextSwitches: 1 (1) - LoadTime: 0.000ns - ModuleBitcodeSize: 2.26 MB (2373148) - NumFunctions: 22 (22) - NumInstructions: 381 (381) - OptimizationTime: 2s023ms - PeakMemoryUsage: 190.50 KB (195072) - PrepareTime: 11.598ms Change-Id: I24d5a46b8870bc959b89045432d2e86af72b30e5 --- M be/src/codegen/llvm-codegen.cc M be/src/codegen/llvm-codegen.h M be/src/exec/hdfs-avro-scanner.cc M be/src/exec/hdfs-parquet-scanner.cc M be/src/exec/hdfs-scanner.cc M be/src/exec/partitioned-aggregation-node.cc M be/src/exec/select-node.cc M be/src/exec/text-converter.cc M be/src/runtime/tuple.cc M be/src/util/tuple-row-compare.cc 10 files changed, 26 insertions(+), 8 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/60/9960/1 -- To view, visit http://gerrit.cloudera.org:8080/9960 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I24d5a46b8870bc959b89045432d2e86af72b30e5 Gerrit-Change-Number: 9960 Gerrit-PatchSet: 1 Gerrit-Owner: Bikramjeet Vig <bikramjeet....@cloudera.com>