mirror of
https://github.com/dart-lang/sdk
synced 2024-10-05 02:17:16 +00:00
a3e84160ec
TEST=vm/dart/analyze_snapshot_binary_test Change-Id: I96ef5d8fc92292151444e52d189e6b2d10a99375 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/308303 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>
31 lines
865 B
C++
31 lines
865 B
C++
/*
|
|
* Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
|
|
* for details. All rights reserved. Use of this source code is governed by a
|
|
* BSD-style license that can be found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef RUNTIME_INCLUDE_ANALYZE_SNAPSHOT_API_H_
|
|
#define RUNTIME_INCLUDE_ANALYZE_SNAPSHOT_API_H_
|
|
|
|
#include <stdint.h>
|
|
#include <optional>
|
|
|
|
namespace dart {
|
|
namespace snapshot_analyzer {
|
|
typedef struct {
|
|
const uint8_t* vm_snapshot_data;
|
|
const uint8_t* vm_snapshot_instructions;
|
|
const uint8_t* vm_isolate_data;
|
|
const uint8_t* vm_isolate_instructions;
|
|
} Dart_SnapshotAnalyzerInformation;
|
|
|
|
void Dart_DumpSnapshotInformationAsJson(
|
|
const Dart_SnapshotAnalyzerInformation& info,
|
|
char** buffer,
|
|
intptr_t* buffer_length);
|
|
|
|
} // namespace snapshot_analyzer
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_INCLUDE_ANALYZE_SNAPSHOT_API_H_
|