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

Side by Side Diff: runtime/szrt_profiler.c

Issue 1273153002: Subzero. Native 64-bit int arithmetic on x86-64. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 5 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
OLDNEW
1 #include <inttypes.h>
1 #include <stdint.h> 2 #include <stdint.h>
2 #include <stdio.h> 3 #include <stdio.h>
3 4
4 struct BlockProfileInfo { 5 struct BlockProfileInfo {
5 uint64_t Counter; 6 uint64_t Counter;
6 const char *const BlockName; 7 const char *const BlockName;
7 } __attribute__((aligned(8))); 8 } __attribute__((aligned(8)));
8 9
9 extern const struct BlockProfileInfo *__Sz_block_profile_info; 10 extern const struct BlockProfileInfo *__Sz_block_profile_info;
10 11
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 " " 47 " "
47 "__________________________________________________________________________" 48 "__________________________________________________________________________"
48 "____________________________\n" 49 "____________________________\n"
49 "\n" 50 "\n"
50 "\n"; 51 "\n";
51 52
52 void __Sz_profile_summary() { 53 void __Sz_profile_summary() {
53 printf("%s", SubzeroLogo); 54 printf("%s", SubzeroLogo);
54 for (const struct BlockProfileInfo **curr = &__Sz_block_profile_info; 55 for (const struct BlockProfileInfo **curr = &__Sz_block_profile_info;
55 *curr != NULL; ++curr) { 56 *curr != NULL; ++curr) {
56 printf("%lld\t%s\n", (*curr)->Counter, (*curr)->BlockName); 57 printf("%" PRIu64 "\t%s\n", (*curr)->Counter, (*curr)->BlockName);
57 } 58 }
58 fflush(stdout); 59 fflush(stdout);
59 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698