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

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

Issue 10821061: The changes for compiling with Android NDK r8b (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months 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
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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

Powered by Google App Engine
This is Rietveld 408576698