From f86be93b7492b381370cae7bf71eca8572a0cbae Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 24 Aug 2021 16:27:15 +0100 Subject: IVGCVSW-5924 Update 21.08 Doxygen Documents * Also updated latest symlink. Signed-off-by: Matthew Sloyan Change-Id: If9b4e0e52464abdf797b9eb858ae19bcc64c2aea --- 21.08/_heap_profiling_8cpp_source.xhtml | 115 ++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 21.08/_heap_profiling_8cpp_source.xhtml (limited to '21.08/_heap_profiling_8cpp_source.xhtml') diff --git a/21.08/_heap_profiling_8cpp_source.xhtml b/21.08/_heap_profiling_8cpp_source.xhtml new file mode 100644 index 0000000000..9a514b63e5 --- /dev/null +++ b/21.08/_heap_profiling_8cpp_source.xhtml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + +ArmNN: src/armnnUtils/HeapProfiling.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
HeapProfiling.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #ifdef ARMNN_HEAP_PROFILING_ENABLED
7 
8 #include "HeapProfiling.hpp"
9 #include "gperftools/heap-profiler.h"
10 #include <sstream>
11 #include <cstdlib>
12 
13 namespace armnnUtils
14 {
15 
16 ScopedHeapProfiler::ScopedHeapProfiler(const std::string & tag)
17 : m_Location("/tmp")
18 , m_Tag(tag)
19 {
20  char * locationFromEnv = ::getenv(ARMNN_HEAP_PROFILE_DUMP_DIR);
21  if (locationFromEnv)
22  {
23  m_Location = locationFromEnv;
24  }
25  std::stringstream ss;
26  ss << m_Location << "/" << m_Tag << ".hprof";
27  HeapProfilerStart(ss.str().c_str());
28  HeapProfilerDump(m_Tag.c_str());
29 }
30 
31 ScopedHeapProfiler::~ScopedHeapProfiler()
32 {
33  HeapProfilerDump(m_Tag.c_str());
34 }
35 
36 } // namespace armnnUtils
37 
38 #endif // ARMNN_HEAP_PROFILING_ENABLED
+ +
+
+ + + + -- cgit v1.2.1