| 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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 } | 862 } |
| 863 last_wall_time_ = current_time; | 863 last_wall_time_ = current_time; |
| 864 wall_time_query_countdown_ = | 864 wall_time_query_countdown_ = |
| 865 static_cast<unsigned>(kWallTimeQueryIntervalMs * ticks_per_ms_); | 865 static_cast<unsigned>(kWallTimeQueryIntervalMs * ticks_per_ms_); |
| 866 } | 866 } |
| 867 | 867 |
| 868 | 868 |
| 869 const char* const ProfileGenerator::kAnonymousFunctionName = | 869 const char* const ProfileGenerator::kAnonymousFunctionName = |
| 870 "(anonymous function)"; | 870 "(anonymous function)"; |
| 871 const char* const ProfileGenerator::kProgramEntryName = | 871 const char* const ProfileGenerator::kProgramEntryName = |
| 872 "(program)"; | 872 "(native)"; |
| 873 const char* const ProfileGenerator::kGarbageCollectorEntryName = | 873 const char* const ProfileGenerator::kGarbageCollectorEntryName = |
| 874 "(garbage collector)"; | 874 "(garbage collector)"; |
| 875 | 875 |
| 876 | 876 |
| 877 ProfileGenerator::ProfileGenerator(CpuProfilesCollection* profiles) | 877 ProfileGenerator::ProfileGenerator(CpuProfilesCollection* profiles) |
| 878 : profiles_(profiles), | 878 : profiles_(profiles), |
| 879 program_entry_( | 879 program_entry_( |
| 880 profiles->NewCodeEntry(Logger::FUNCTION_TAG, kProgramEntryName)), | 880 profiles->NewCodeEntry(Logger::FUNCTION_TAG, kProgramEntryName)), |
| 881 gc_entry_( | 881 gc_entry_( |
| 882 profiles->NewCodeEntry(Logger::BUILTIN_TAG, | 882 profiles->NewCodeEntry(Logger::BUILTIN_TAG, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 if (no_symbolized_entries) { | 930 if (no_symbolized_entries) { |
| 931 *entry++ = EntryForVMState(sample.state); | 931 *entry++ = EntryForVMState(sample.state); |
| 932 } | 932 } |
| 933 } | 933 } |
| 934 | 934 |
| 935 profiles_->AddPathToCurrentProfiles(entries); | 935 profiles_->AddPathToCurrentProfiles(entries); |
| 936 } | 936 } |
| 937 | 937 |
| 938 | 938 |
| 939 } } // namespace v8::internal | 939 } } // namespace v8::internal |
| OLD | NEW |