Update stats-gathering code
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Mon, 14 Nov 2016 21:13:44 +0000 (21:13 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Mon, 14 Nov 2016 21:13:44 +0000 (21:13 +0000)
commit5375fe820cff7ae7f3c5c771f28c6f5518f2ee60
treed1a87287140554083ff8cc8428685f237f2fe899
parentf10a871419c3bfb05690add75201b1cb56c8e96d
Update stats-gathering code

Have developer timers use partitioning scheme which also required that some
redundant developer timers be removed in favor of the already existing normal
timers. Move per thread stats initialization to just after global thread id
assignment which is as early as possible. Also put all global stats
initialization code in __kmp_stats_init() and all global stats destruction code
in __kmp_stats_fini().

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

llvm-svn: 286892
openmp/runtime/src/kmp_barrier.cpp
openmp/runtime/src/kmp_global.c
openmp/runtime/src/kmp_runtime.c
openmp/runtime/src/kmp_stats.cpp
openmp/runtime/src/kmp_stats.h
openmp/runtime/src/z_Linux_util.c