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

Side by Side Diff: src/d8.cc

Issue 9864029: Valgrind cleanliness, part 4: Delete CounterMap on exit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 if (counter->is_histogram()) { 979 if (counter->is_histogram()) {
980 printf("| c:%-40s | %11i |\n", key, counter->count()); 980 printf("| c:%-40s | %11i |\n", key, counter->count());
981 printf("| t:%-40s | %11i |\n", key, counter->sample_total()); 981 printf("| t:%-40s | %11i |\n", key, counter->sample_total());
982 } else { 982 } else {
983 printf("| %-42s | %11i |\n", key, counter->count()); 983 printf("| %-42s | %11i |\n", key, counter->count());
984 } 984 }
985 } 985 }
986 printf("+--------------------------------------------+-------------+\n"); 986 printf("+--------------------------------------------+-------------+\n");
987 delete [] counters; 987 delete [] counters;
988 } 988 }
989 if (counters_file_ != NULL) 989 delete counters_file_;
990 delete counters_file_; 990 delete counter_map_;
991 } 991 }
992 #endif // V8_SHARED 992 #endif // V8_SHARED
993 993
994 994
995 static FILE* FOpen(const char* path, const char* mode) { 995 static FILE* FOpen(const char* path, const char* mode) {
996 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)) 996 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))
997 FILE* result; 997 FILE* result;
998 if (fopen_s(&result, path, mode) == 0) { 998 if (fopen_s(&result, path, mode) == 0) {
999 return result; 999 return result;
1000 } else { 1000 } else {
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 } 1548 }
1549 1549
1550 } // namespace v8 1550 } // namespace v8
1551 1551
1552 1552
1553 #ifndef GOOGLE3 1553 #ifndef GOOGLE3
1554 int main(int argc, char* argv[]) { 1554 int main(int argc, char* argv[]) {
1555 return v8::Shell::Main(argc, argv); 1555 return v8::Shell::Main(argc, argv);
1556 } 1556 }
1557 #endif 1557 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698