roctracer_wrapper.h 506 Bytes
Newer Older
wangkaixiong's avatar
init  
wangkaixiong committed
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
#ifndef ROCTRACER_WRAPPER_H
#define ROCTRACER_WRAPPER_H

#include <string>
#include <memory>

class RoctracerWrapper {
public:
    RoctracerWrapper();
    ~RoctracerWrapper();
    
    // 标记点
    void mark(const std::string& message);
    
    // 范围操作
    int rangeStart(const std::string& message);
    void rangePush(const std::string& message);
    void rangePop();
    void rangeStop(int id);
    
private:
    class Impl;
    std::unique_ptr<Impl> impl;
};

#endif // ROCTRACER_WRAPPER_H