File tree 2 files changed +36
-0
lines changed
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,18 @@ cc_library(
615
615
],
616
616
)
617
617
618
+ cc_library (
619
+ name = "profile" ,
620
+ hdrs = ["profile.h" ],
621
+ deps = [
622
+ ":function_chain_info" ,
623
+ ":program_cfg" ,
624
+ ":propeller_statistics" ,
625
+ "@abseil-cpp//absl/container:btree" ,
626
+ "@llvm-project//llvm:Support" ,
627
+ ],
628
+ )
629
+
618
630
########################
619
631
# Tests & Test Utils #
620
632
########################
Original file line number Diff line number Diff line change
1
+ #ifndef PROPELLER_PROFILE_H_
2
+ #define PROPELLER_PROFILE_H_
3
+
4
+ #include < memory>
5
+ #include < vector>
6
+
7
+ #include " absl/container/btree_map.h"
8
+ #include " llvm/ADT/StringRef.h"
9
+ #include " propeller/function_chain_info.h"
10
+ #include " propeller/program_cfg.h"
11
+ #include " propeller/propeller_statistics.h"
12
+
13
+ namespace propeller {
14
+
15
+ struct PropellerProfile {
16
+ std::unique_ptr<ProgramCfg> program_cfg;
17
+ // Layout of functions in each section.
18
+ absl::btree_map<llvm::StringRef, std::vector<FunctionChainInfo>>
19
+ functions_chain_info_by_section_name;
20
+ PropellerStats stats;
21
+ };
22
+ } // namespace propeller
23
+
24
+ #endif // PROPELLER_PROFILE_H_
You can’t perform that action at this time.
0 commit comments