| 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 7292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7303 | 7303 |
| 7304 | 7304 |
| 7305 const CpuProfileNode* CpuProfile::GetSample(int index) const { | 7305 const CpuProfileNode* CpuProfile::GetSample(int index) const { |
| 7306 const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this); | 7306 const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this); |
| 7307 return reinterpret_cast<const CpuProfileNode*>(profile->sample(index)); | 7307 return reinterpret_cast<const CpuProfileNode*>(profile->sample(index)); |
| 7308 } | 7308 } |
| 7309 | 7309 |
| 7310 | 7310 |
| 7311 int64_t CpuProfile::GetStartTime() const { | 7311 int64_t CpuProfile::GetStartTime() const { |
| 7312 const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this); | 7312 const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this); |
| 7313 return (profile->start_time() - i::Time::UnixEpoch()).InMicroseconds(); | 7313 return profile->start_time_us(); |
| 7314 } | 7314 } |
| 7315 | 7315 |
| 7316 | 7316 |
| 7317 int64_t CpuProfile::GetEndTime() const { | 7317 int64_t CpuProfile::GetEndTime() const { |
| 7318 const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this); | 7318 const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this); |
| 7319 return (profile->end_time() - i::Time::UnixEpoch()).InMicroseconds(); | 7319 return profile->end_time_us(); |
| 7320 } | 7320 } |
| 7321 | 7321 |
| 7322 | 7322 |
| 7323 int CpuProfile::GetSamplesCount() const { | 7323 int CpuProfile::GetSamplesCount() const { |
| 7324 return reinterpret_cast<const i::CpuProfile*>(this)->samples_count(); | 7324 return reinterpret_cast<const i::CpuProfile*>(this)->samples_count(); |
| 7325 } | 7325 } |
| 7326 | 7326 |
| 7327 | 7327 |
| 7328 int CpuProfiler::GetProfileCount() { | 7328 int CpuProfiler::GetProfileCount() { |
| 7329 return reinterpret_cast<i::CpuProfiler*>(this)->GetProfilesCount(); | 7329 return reinterpret_cast<i::CpuProfiler*>(this)->GetProfilesCount(); |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7864 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7864 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
| 7865 Address callback_address = | 7865 Address callback_address = |
| 7866 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7866 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 7867 VMState<EXTERNAL> state(isolate); | 7867 VMState<EXTERNAL> state(isolate); |
| 7868 ExternalCallbackScope call_scope(isolate, callback_address); | 7868 ExternalCallbackScope call_scope(isolate, callback_address); |
| 7869 return callback(info); | 7869 return callback(info); |
| 7870 } | 7870 } |
| 7871 | 7871 |
| 7872 | 7872 |
| 7873 } } // namespace v8::internal | 7873 } } // namespace v8::internal |
| OLD | NEW |