Sming Framework API
()
Toggle main menu visibility
Sming
Services
Profiling
TaskStat.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
* TaskStat.h
8
*
9
*/
10
11
#pragma once
12
13
#include <
Print.h
>
14
#include <memory>
15
16
namespace
Profiling
17
{
30
class
TaskStat
31
{
32
public
:
37
TaskStat
(
Print
& out);
38
39
~TaskStat
();
40
48
bool
update
();
49
50
private
:
51
Print
& out;
52
static
constexpr
size_t
maxTasks{32};
53
struct
Info;
54
std::unique_ptr<Info[]> taskInfo;
55
#ifdef ARCH_ESP32
56
uint8_t startIndex{0};
57
uint8_t endIndex{0};
58
#endif
59
};
60
61
}
// namespace Profiling
Print.h
Print
Provides formatted output to stream.
Definition:
Print.h:37
Profiling::TaskStat
Helper class to support printing of real-time task information.
Definition:
TaskStat.h:31
Profiling::TaskStat::TaskStat
TaskStat(Print &out)
Constructor.
Profiling::TaskStat::~TaskStat
~TaskStat()
Profiling::TaskStat::update
bool update()
Update the report.
Profiling
Definition:
CpuUsage.h:5
Generated by
1.9.1