-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathplot_actions.hpp
52 lines (41 loc) · 950 Bytes
/
plot_actions.hpp
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
44
45
46
47
48
49
50
51
52
#pragma once
#include "alloc_action.hpp"
#include <cstddef>
#include <vector>
#include <string>
struct PlotOptions {
enum PlotFormat {
Console,
Svg,
Obj,
};
enum PlotScale {
Linear,
Log,
Sqrt,
};
enum PlotIndicate {
Thread,
Caller,
};
enum PlotLayout {
Timeline,
Address,
};
PlotFormat format = Svg;
std::string path = "";
PlotScale height_scale = Sqrt;
PlotIndicate z_indicates = Thread;
// PlotIndicate color_indicates = Caller;
PlotLayout layout = Timeline;
bool show_text = true;
size_t text_max_height = 24;
double text_height_fraction = 0.4;
bool filter_cpp = true;
bool filter_c = true;
bool filter_cuda = true;
size_t svg_margin = 420;
size_t svg_width = 2000;
size_t svg_height = 1460;
};
void mallocvis_plot_alloc_actions(std::vector<AllocAction> actions);