Libraries/jerryscript/src/include/Jerryscript/Debug.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * Debug.h
8  */
9 
10 #pragma once
11 
12 #include <include/jerryscript.h>
13 
14 namespace Jerryscript
15 {
16 using HeapStats = jerry_heap_stats_t;
17 
18 inline bool getHeapStats(HeapStats& stats)
19 {
20  return jerry_get_memory_stats(&stats);
21 }
22 
23 size_t getHeapUsed();
24 
25 bool printHeap();
26 
27 } // namespace Jerryscript
Definition: Libraries/jerryscript/src/include/Jerryscript/Context.h:124
size_t getHeapUsed()
bool printHeap()
bool getHeapStats(HeapStats &stats)
Definition: Libraries/jerryscript/src/include/Jerryscript/Debug.h:18
jerry_heap_stats_t HeapStats
Definition: Libraries/jerryscript/src/include/Jerryscript/Debug.h:16