OLD | NEW |
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 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 printf("| c:%-60s | %11i |\n", key, counter->count()); | 1371 printf("| c:%-60s | %11i |\n", key, counter->count()); |
1372 printf("| t:%-60s | %11i |\n", key, counter->sample_total()); | 1372 printf("| t:%-60s | %11i |\n", key, counter->sample_total()); |
1373 } else { | 1373 } else { |
1374 printf("| %-62s | %11i |\n", key, counter->count()); | 1374 printf("| %-62s | %11i |\n", key, counter->count()); |
1375 } | 1375 } |
1376 } | 1376 } |
1377 printf("+----------------------------------------------------------------+" | 1377 printf("+----------------------------------------------------------------+" |
1378 "-------------+\n"); | 1378 "-------------+\n"); |
1379 delete [] counters; | 1379 delete [] counters; |
1380 } | 1380 } |
| 1381 delete context_mutex_; |
1381 delete counters_file_; | 1382 delete counters_file_; |
1382 delete counter_map_; | 1383 delete counter_map_; |
1383 #endif // V8_SHARED | 1384 #endif // V8_SHARED |
1384 } | 1385 } |
1385 | 1386 |
1386 | 1387 |
1387 | 1388 |
1388 static FILE* FOpen(const char* path, const char* mode) { | 1389 static FILE* FOpen(const char* path, const char* mode) { |
1389 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)) | 1390 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)) |
1390 FILE* result; | 1391 FILE* result; |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1964 } | 1965 } |
1965 | 1966 |
1966 } // namespace v8 | 1967 } // namespace v8 |
1967 | 1968 |
1968 | 1969 |
1969 #ifndef GOOGLE3 | 1970 #ifndef GOOGLE3 |
1970 int main(int argc, char* argv[]) { | 1971 int main(int argc, char* argv[]) { |
1971 return v8::Shell::Main(argc, argv); | 1972 return v8::Shell::Main(argc, argv); |
1972 } | 1973 } |
1973 #endif | 1974 #endif |
OLD | NEW |