diff options
author | Xinliang David Li <davidxl@google.com> | 2016-08-09 04:21:14 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-08-09 04:21:14 +0000 |
commit | 662d5497c3a4fbcdbf125d109f4abe5a9385cc20 (patch) | |
tree | 75caffb22007df93d6a22f8424a6ee34ffe3e2d0 /lib/profile/InstrProfilingInternal.h | |
parent | 97809160002d2a275a04e62313e55f1607fde234 (diff) | |
download | compiler-rt-662d5497c3a4fbcdbf125d109f4abe5a9385cc20.tar.gz |
[Profile] Implement new API __llvm_profile_dump
The API is intended to be used by user to do fine
grained (per-region) control of profile dumping.
Differential Revision: http://reviews.llvm.org/D23106
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@278092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingInternal.h')
-rw-r--r-- | lib/profile/InstrProfilingInternal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/profile/InstrProfilingInternal.h b/lib/profile/InstrProfilingInternal.h index bcbe29a03..21590d5c4 100644 --- a/lib/profile/InstrProfilingInternal.h +++ b/lib/profile/InstrProfilingInternal.h @@ -163,6 +163,13 @@ void lprofSetupValueProfiler(); * to dump merged profile data into its own profile file. */ uint64_t lprofGetLoadModuleSignature(); +/* + * Return non zero value if the profile data has already been + * dumped to the file. + */ +unsigned lprofProfileDumped(); +void lprofSetProfileDumped(); + COMPILER_RT_VISIBILITY extern char *(*GetEnvHook)(const char *); COMPILER_RT_VISIBILITY extern void (*FreeHook)(void *); COMPILER_RT_VISIBILITY extern uint8_t *DynamicBufferIOBuffer; |