Lines Matching refs:Profile

26 TEST(ProfileTest, CreateProfile) { Profile P; }  in TEST()
29 Profile P; in TEST()
38 Profile P; in TEST()
47 Profile P; in TEST()
56 Profile::Block{Profile::ThreadID{1}, in TEST()
58 {P.internPath({2, 1}), Profile::Data{1, 1000}}, in TEST()
59 {P.internPath({3, 2, 1}), Profile::Data{10, 100}}, in TEST()
64 Profile P0, P1; in TEST()
66 Profile::Block{Profile::ThreadID{1}, in TEST()
68 {P0.internPath({2, 1}), Profile::Data{1, 1000}}, in TEST()
69 {P0.internPath({3, 2, 1}), Profile::Data{10, 100}}, in TEST()
74 Field(&Profile::Block::Thread, Eq(Profile::ThreadID{1})), in TEST()
75 Field(&Profile::Block::PathData, in TEST()
78 AllOf(Field(&Profile::Data::CallCount, Eq(1u)), in TEST()
79 Field(&Profile::Data::CumulativeLocalTime, in TEST()
82 AllOf(Field(&Profile::Data::CallCount, Eq(10u)), in TEST()
83 Field(&Profile::Data::CumulativeLocalTime, in TEST()
88 Profile P0, P1; in TEST()
90 Profile::Block{Profile::ThreadID{1}, in TEST()
92 {P0.internPath({2, 1}), Profile::Data{1, 1000}}, in TEST()
93 {P0.internPath({3, 2, 1}), Profile::Data{10, 100}}, in TEST()
98 Field(&Profile::Block::Thread, Eq(Profile::ThreadID{1})), in TEST()
99 Field(&Profile::Block::PathData, in TEST()
102 AllOf(Field(&Profile::Data::CallCount, Eq(1u)), in TEST()
103 Field(&Profile::Data::CumulativeLocalTime, in TEST()
106 AllOf(Field(&Profile::Data::CallCount, Eq(10u)), in TEST()
107 Field(&Profile::Data::CumulativeLocalTime, in TEST()
113 Profile P0, P1; in TEST()
117 Profile::Block{Profile::ThreadID{1}, in TEST()
118 {{P0.internPath({2, 1}), Profile::Data{1, 1000}}, in TEST()
119 {P0.internPath({4, 1}), Profile::Data{1, 1000}}}}))); in TEST()
121 Profile::Block{Profile::ThreadID{2}, in TEST()
122 {{P0.internPath({3, 1}), Profile::Data{1, 1000}}}}))); in TEST()
126 Profile::Block{Profile::ThreadID{1}, in TEST()
127 {{P1.internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST()
129 Profile::Block{Profile::ThreadID{2}, in TEST()
130 {{P1.internPath({3, 1}), Profile::Data{1, 1000}}, in TEST()
131 {P1.internPath({4, 1}), Profile::Data{1, 1000}}}}))); in TEST()
133 Profile Merged = mergeProfilesByThread(P0, P1); in TEST()
138 AllOf(Field(&Profile::Block::Thread, Eq(Profile::ThreadID{1})), in TEST()
139 Field(&Profile::Block::PathData, in TEST()
142 AllOf(Field(&Profile::Data::CallCount, Eq(2u)), in TEST()
143 Field(&Profile::Data::CumulativeLocalTime, in TEST()
146 AllOf(Field(&Profile::Data::CallCount, Eq(1u)), in TEST()
147 Field(&Profile::Data::CumulativeLocalTime, in TEST()
149 AllOf(Field(&Profile::Block::Thread, Eq(Profile::ThreadID{2})), in TEST()
150 Field(&Profile::Block::PathData, in TEST()
153 AllOf(Field(&Profile::Data::CallCount, Eq(2u)), in TEST()
154 Field(&Profile::Data::CumulativeLocalTime, in TEST()
157 AllOf(Field(&Profile::Data::CallCount, Eq(1u)), in TEST()
158 Field(&Profile::Data::CumulativeLocalTime, in TEST()
163 Profile P0, P1; in TEST()
165 Profile::Block{Profile::ThreadID{1}, in TEST()
166 {{P0.internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST()
168 Profile::Block{Profile::ThreadID{2}, in TEST()
169 {{P1.internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST()
171 Profile Merged = mergeProfilesByStack(P0, P1); in TEST()
176 Field(&Profile::Block::Thread, Eq(Profile::ThreadID{0})), in TEST()
177 Field(&Profile::Block::PathData, in TEST()
180 AllOf(Field(&Profile::Data::CallCount, Eq(2u)), in TEST()
181 Field(&Profile::Data::CumulativeLocalTime, in TEST()
186 std::vector<Profile> Profiles(3); in TEST()
187 EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{ in TEST()
188 Profile::ThreadID{1}, in TEST()
189 {{Profiles[0].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST()
190 EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{ in TEST()
191 Profile::ThreadID{2}, in TEST()
192 {{Profiles[1].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST()
193 EXPECT_FALSE(errorToBool(Profiles[2].addBlock(Profile::Block{ in TEST()
194 Profile::ThreadID{3}, in TEST()
195 {{Profiles[2].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST()
196 Profile Merged = std::accumulate(Profiles.begin(), Profiles.end(), Profile(), in TEST()
202 Field(&Profile::Block::Thread, Eq(Profile::ThreadID{0})), in TEST()
203 Field(&Profile::Block::PathData, in TEST()
206 AllOf(Field(&Profile::Data::CallCount, Eq(3u)), in TEST()
207 Field(&Profile::Data::CumulativeLocalTime, in TEST()
212 std::vector<Profile> Profiles(2); in TEST()
215 EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{ in TEST()
216 Profile::ThreadID{1}, in TEST()
217 {{Profiles[0].internPath({2, 1}), Profile::Data{1, 1000}}, in TEST()
218 {Profiles[0].internPath({4, 1}), Profile::Data{1, 1000}}}}))); in TEST()
219 EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{ in TEST()
220 Profile::ThreadID{2}, in TEST()
221 {{Profiles[0].internPath({3, 1}), Profile::Data{1, 1000}}}}))); in TEST()
224 EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{ in TEST()
225 Profile::ThreadID{1}, in TEST()
226 {{Profiles[1].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST()
227 EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{ in TEST()
228 Profile::ThreadID{2}, in TEST()
229 {{Profiles[1].internPath({3, 1}), Profile::Data{1, 1000}}, in TEST()
230 {Profiles[1].internPath({4, 1}), Profile::Data{1, 1000}}}}))); in TEST()
232 Profile Merged = std::accumulate(Profiles.begin(), Profiles.end(), Profile(), in TEST()
238 AllOf(Field(&Profile::Block::Thread, Eq(Profile::ThreadID{1})), in TEST()
239 Field(&Profile::Block::PathData, in TEST()
242 AllOf(Field(&Profile::Data::CallCount, Eq(2u)), in TEST()
243 Field(&Profile::Data::CumulativeLocalTime, in TEST()
246 AllOf(Field(&Profile::Data::CallCount, Eq(1u)), in TEST()
247 Field(&Profile::Data::CumulativeLocalTime, in TEST()
249 AllOf(Field(&Profile::Block::Thread, Eq(Profile::ThreadID{2})), in TEST()
250 Field(&Profile::Block::PathData, in TEST()
253 AllOf(Field(&Profile::Data::CallCount, Eq(2u)), in TEST()
254 Field(&Profile::Data::CumulativeLocalTime, in TEST()
257 AllOf(Field(&Profile::Data::CallCount, Eq(1u)), in TEST()
258 Field(&Profile::Data::CumulativeLocalTime, in TEST()