| OLD | NEW |
| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 false /* not important */); | 382 false /* not important */); |
| 383 AppendResult(output, "ws_final_r", "", "ws_f_r" + trace_name, | 383 AppendResult(output, "ws_final_r", "", "ws_f_r" + trace_name, |
| 384 renderer_working_set_size, "bytes", | 384 renderer_working_set_size, "bytes", |
| 385 false /* not important */); | 385 false /* not important */); |
| 386 AppendResult(output, "vm_final_t", "", "vm_f_t" + trace_name, | 386 AppendResult(output, "vm_final_t", "", "vm_f_t" + trace_name, |
| 387 total_virtual_size, "bytes", | 387 total_virtual_size, "bytes", |
| 388 false /* not important */); | 388 false /* not important */); |
| 389 AppendResult(output, "ws_final_t", "", "ws_f_t" + trace_name, | 389 AppendResult(output, "ws_final_t", "", "ws_f_t" + trace_name, |
| 390 total_working_set_size, "bytes", | 390 total_working_set_size, "bytes", |
| 391 false /* not important */); | 391 false /* not important */); |
| 392 #elif defined(OS_LINUX) || defined(OS_MACOSX) | 392 #elif defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_ANDROID) |
| 393 AppendResult(output, "vm_size_final_b", "", "vm_size_f_b" + trace_name, | 393 AppendResult(output, "vm_size_final_b", "", "vm_size_f_b" + trace_name, |
| 394 browser_virtual_size, "bytes", | 394 browser_virtual_size, "bytes", |
| 395 false /* not important */); | 395 false /* not important */); |
| 396 AppendResult(output, "vm_rss_final_b", "", "vm_rss_f_b" + trace_name, | 396 AppendResult(output, "vm_rss_final_b", "", "vm_rss_f_b" + trace_name, |
| 397 browser_working_set_size, "bytes", | 397 browser_working_set_size, "bytes", |
| 398 false /* not important */); | 398 false /* not important */); |
| 399 AppendResult(output, "vm_size_final_r", "", "vm_size_f_r" + trace_name, | 399 AppendResult(output, "vm_size_final_r", "", "vm_size_f_r" + trace_name, |
| 400 renderer_virtual_size, "bytes", | 400 renderer_virtual_size, "bytes", |
| 401 false /* not important */); | 401 false /* not important */); |
| 402 AppendResult(output, "vm_rss_final_r", "", "vm_rss_f_r" + trace_name, | 402 AppendResult(output, "vm_rss_final_r", "", "vm_rss_f_r" + trace_name, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |