blob: c1432b315d56a97d32a3adb317ef40685b042d79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "IBufferWrapper.hpp"
#include "ISendCounterPacket.hpp"
#include "CounterDirectory.hpp"
namespace armnn
{
namespace profiling
{
class SendCounterPacket : public ISendCounterPacket
{
public:
SendCounterPacket(IBufferWrapper& buffer) : m_Buffer(buffer), m_ReadyToRead(false) {}
void SendStreamMetaDataPacket() override;
void SendCounterDirectoryPacket(const Category& category, const std::vector<Counter>& counters) override;
void SendPeriodicCounterCapturePacket(uint64_t timestamp, const std::vector<uint32_t>& counterValues,
const std::vector<uint16_t>& counterUids) override;
void SendPeriodicCounterSelectionPacket(uint32_t capturePeriod,
const std::vector<uint16_t>& selectedCounterIds) override;
void SetReadyToRead() override;
private:
IBufferWrapper& m_Buffer;
bool m_ReadyToRead;
};
} // namespace profiling
} // namespace armnn
|