Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: chrome/test/perf/perf_test.cc

Issue 11365067: Revert 163638 - Adds units for all Chromium perf tests. These units are recorded in the graphs.dat … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/perf/page_cycler_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/perf/perf_test.h" 5 #include "chrome/test/perf/perf_test.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 write_byte_r += write_byte; 224 write_byte_r += write_byte;
225 other_byte_r += other_byte; 225 other_byte_r += other_byte;
226 total_byte_r += total_byte; 226 total_byte_r += total_byte;
227 } 227 }
228 } 228 }
229 229
230 base::CloseProcessHandle(process_handle); 230 base::CloseProcessHandle(process_handle);
231 } 231 }
232 232
233 std::string t_name(test_name); 233 std::string t_name(test_name);
234 AppendResult(output, "read_op_b", "", "r_op_b" + t_name, read_op_b, "ops", 234 AppendResult(output, "read_op_b", "", "r_op_b" + t_name, read_op_b, "",
235 false); 235 false);
236 AppendResult(output, "write_op_b", "", "w_op_b" + t_name, write_op_b, "ops", 236 AppendResult(output, "write_op_b", "", "w_op_b" + t_name, write_op_b, "",
237 false); 237 false);
238 AppendResult(output, "other_op_b", "", "o_op_b" + t_name, other_op_b, "ops", 238 AppendResult(output, "other_op_b", "", "o_op_b" + t_name, other_op_b, "",
239 false); 239 false);
240 AppendResult(output, "total_op_b", "", "IO_op_b" + t_name, total_op_b, "ops", 240 AppendResult(output, "total_op_b", "", "IO_op_b" + t_name, total_op_b, "",
241 false); 241 false);
242 242
243 AppendResult(output, "read_byte_b", "", "r_b" + t_name, read_byte_b, "kb", 243 AppendResult(output, "read_byte_b", "", "r_b" + t_name, read_byte_b, "kb",
244 false); 244 false);
245 AppendResult(output, "write_byte_b", "", "w_b" + t_name, write_byte_b, "kb", 245 AppendResult(output, "write_byte_b", "", "w_b" + t_name, write_byte_b, "kb",
246 false); 246 false);
247 AppendResult(output, "other_byte_b", "", "o_b" + t_name, other_byte_b, "kb", 247 AppendResult(output, "other_byte_b", "", "o_b" + t_name, other_byte_b, "kb",
248 false); 248 false);
249 AppendResult(output, "total_byte_b", "", "IO_b" + t_name, total_byte_b, "kb", 249 AppendResult(output, "total_byte_b", "", "IO_b" + t_name, total_byte_b, "kb",
250 false); 250 false);
251 251
252 AppendResult(output, "read_op_r", "", "r_op_r" + t_name, read_op_r, "ops", 252 AppendResult(output, "read_op_r", "", "r_op_r" + t_name, read_op_r, "",
253 false); 253 false);
254 AppendResult(output, "write_op_r", "", "w_op_r" + t_name, write_op_r, "ops", 254 AppendResult(output, "write_op_r", "", "w_op_r" + t_name, write_op_r, "",
255 false); 255 false);
256 AppendResult(output, "other_op_r", "", "o_op_r" + t_name, other_op_r, "ops", 256 AppendResult(output, "other_op_r", "", "o_op_r" + t_name, other_op_r, "",
257 false); 257 false);
258 AppendResult(output, "total_op_r", "", "IO_op_r" + t_name, total_op_r, "ops", 258 AppendResult(output, "total_op_r", "", "IO_op_r" + t_name, total_op_r, "",
259 false); 259 false);
260 260
261 AppendResult(output, "read_byte_r", "", "r_r" + t_name, read_byte_r, "kb", 261 AppendResult(output, "read_byte_r", "", "r_r" + t_name, read_byte_r, "kb",
262 false); 262 false);
263 AppendResult(output, "write_byte_r", "", "w_r" + t_name, write_byte_r, "kb", 263 AppendResult(output, "write_byte_r", "", "w_r" + t_name, write_byte_r, "kb",
264 false); 264 false);
265 AppendResult(output, "other_byte_r", "", "o_r" + t_name, other_byte_r, "kb", 265 AppendResult(output, "other_byte_r", "", "o_r" + t_name, other_byte_r, "kb",
266 false); 266 false);
267 AppendResult(output, "total_byte_r", "", "IO_r" + t_name, total_byte_r, "kb", 267 AppendResult(output, "total_byte_r", "", "IO_r" + t_name, total_byte_r, "kb",
268 false); 268 false);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 AppendResult(output, "vm_size_final_t", "", "vm_size_f_t" + trace_name, 405 AppendResult(output, "vm_size_final_t", "", "vm_size_f_t" + trace_name,
406 total_virtual_size, "bytes", 406 total_virtual_size, "bytes",
407 false /* not important */); 407 false /* not important */);
408 AppendResult(output, "vm_rss_final_t", "", "vm_rss_f_t" + trace_name, 408 AppendResult(output, "vm_rss_final_t", "", "vm_rss_f_t" + trace_name,
409 total_working_set_size, "bytes", 409 total_working_set_size, "bytes",
410 false /* not important */); 410 false /* not important */);
411 #else 411 #else
412 NOTIMPLEMENTED(); 412 NOTIMPLEMENTED();
413 #endif 413 #endif
414 AppendResult(output, "processes", "", "proc_" + trace_name, 414 AppendResult(output, "processes", "", "proc_" + trace_name,
415 chrome_processes.size(), "count", 415 chrome_processes.size(), "",
416 false /* not important */); 416 false /* not important */);
417 417
418 return output; 418 return output;
419 } 419 }
420 420
421 void PrintSystemCommitCharge(const std::string& test_name, 421 void PrintSystemCommitCharge(const std::string& test_name,
422 size_t charge, 422 size_t charge,
423 bool important) { 423 bool important) {
424 PrintSystemCommitCharge(stdout, test_name, charge, important); 424 PrintSystemCommitCharge(stdout, test_name, charge, important);
425 } 425 }
(...skipping 10 matching lines...) Expand all
436 size_t charge, 436 size_t charge,
437 bool important) { 437 bool important) {
438 std::string trace_name(test_name); 438 std::string trace_name(test_name);
439 std::string output; 439 std::string output;
440 AppendResult(output, "commit_charge", "", "cc" + trace_name, charge, "kb", 440 AppendResult(output, "commit_charge", "", "cc" + trace_name, charge, "kb",
441 important); 441 important);
442 return output; 442 return output;
443 } 443 }
444 444
445 } // namespace perf_test 445 } // namespace perf_test
OLDNEW
« no previous file with comments | « chrome/test/perf/page_cycler_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698