| OLD | NEW | 
|---|
| 1 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "include/dart_api.h" | 5 #include "include/dart_api.h" | 
| 6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" | 
| 7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" | 
| 8 | 8 | 
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" | 
| 10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" | 
| (...skipping 5542 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5553     return Api::NewError("%s expects argument 'bytes_length' to be >= 0.", | 5553     return Api::NewError("%s expects argument 'bytes_length' to be >= 0.", | 
| 5554                          CURRENT_FUNC); | 5554                          CURRENT_FUNC); | 
| 5555   } | 5555   } | 
| 5556   Service::SendEmbedderEvent(I, stream_id, event_kind, | 5556   Service::SendEmbedderEvent(I, stream_id, event_kind, | 
| 5557                              bytes, bytes_length); | 5557                              bytes, bytes_length); | 
| 5558   return Api::Success(); | 5558   return Api::Success(); | 
| 5559 } | 5559 } | 
| 5560 | 5560 | 
| 5561 | 5561 | 
| 5562 DART_EXPORT int64_t Dart_TimelineGetMicros() { | 5562 DART_EXPORT int64_t Dart_TimelineGetMicros() { | 
| 5563   return OS::GetCurrentTraceMicros(); | 5563   return OS::GetCurrentMonotonicMicros(); | 
| 5564 } | 5564 } | 
| 5565 | 5565 | 
| 5566 | 5566 | 
| 5567 DART_EXPORT void Dart_TimelineSetRecordedStreams(int64_t stream_mask) { | 5567 DART_EXPORT void Dart_TimelineSetRecordedStreams(int64_t stream_mask) { | 
| 5568   Isolate* isolate = Isolate::Current(); | 5568   Isolate* isolate = Isolate::Current(); | 
| 5569   CHECK_ISOLATE(isolate); | 5569   CHECK_ISOLATE(isolate); | 
| 5570   isolate->GetAPIStream()->set_enabled( | 5570   isolate->GetAPIStream()->set_enabled( | 
| 5571       (stream_mask & DART_TIMELINE_STREAM_API) != 0); | 5571       (stream_mask & DART_TIMELINE_STREAM_API) != 0); | 
| 5572   isolate->GetCompilerStream()->set_enabled( | 5572   isolate->GetCompilerStream()->set_enabled( | 
| 5573       (stream_mask & DART_TIMELINE_STREAM_COMPILER) != 0); | 5573       (stream_mask & DART_TIMELINE_STREAM_COMPILER) != 0); | 
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5927                                    ApiReallocate); | 5927                                    ApiReallocate); | 
| 5928   writer.WriteFullSnapshot(); | 5928   writer.WriteFullSnapshot(); | 
| 5929   *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize(); | 5929   *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize(); | 
| 5930   *isolate_snapshot_size = writer.IsolateSnapshotSize(); | 5930   *isolate_snapshot_size = writer.IsolateSnapshotSize(); | 
| 5931   *instructions_snapshot_size = writer.InstructionsSnapshotSize(); | 5931   *instructions_snapshot_size = writer.InstructionsSnapshotSize(); | 
| 5932 | 5932 | 
| 5933   return Api::Success(); | 5933   return Api::Success(); | 
| 5934 } | 5934 } | 
| 5935 | 5935 | 
| 5936 }  // namespace dart | 5936 }  // namespace dart | 
| OLD | NEW | 
|---|