diff options
Diffstat (limited to 'compiler-rt/lib/esan/esan.cpp')
| -rw-r--r-- | compiler-rt/lib/esan/esan.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/compiler-rt/lib/esan/esan.cpp b/compiler-rt/lib/esan/esan.cpp index 3c69b4e91b5..2fb77894d4f 100644 --- a/compiler-rt/lib/esan/esan.cpp +++ b/compiler-rt/lib/esan/esan.cpp @@ -259,4 +259,12 @@ void processCompilationUnitExit(void *Ptr) {    }  } +unsigned int getSampleCount() { +  VPrintf(1, "in esan::%s\n", __FUNCTION__); +  if (__esan_which_tool == ESAN_WorkingSet) { +    return getSampleCountWorkingSet(); +  } +  return 0; +} +  } // namespace __esan | 

