Interface IDartAotSnapshotInfo
public interface IDartAotSnapshotInfo
Basic information about a Dart AOT snapshot.
-
Method Summary
Modifier and TypeMethodDescriptionlongRetrieve the number of base objects in the snapshot.Retrieve the mapping of Dart object class id to class name for Dart objects, as used by this snapshot.Retrieve the set of snapshot features.Retrieve the list of Dart objects.longRetrieve the total number of objects in the snapshot.longRetrieve the snapshot size.Retrieve a hex-encoded string of the snapshot version hash.Retrieve the inferred Dart SDK version used to generate the snapshot.
-
Method Details
-
getVersionTag
String getVersionTag()Retrieve the inferred Dart SDK version used to generate the snapshot.This information is not directly present in a snapshot. It is derived from the
snapshot version hash.- Returns:
- a high-level version tag, such as "2.17"
-
getVersionHash
String getVersionHash()Retrieve a hex-encoded string of the snapshot version hash.- Returns:
- a hex-encoded snapshot version hash
-
getSnapshotSize
long getSnapshotSize()Retrieve the snapshot size.- Returns:
- the snapshot size in bytes
-
getFeatures
Retrieve the set of snapshot features.- Returns:
- a set of feature names
-
getBaseObjectsCount
long getBaseObjectsCount()Retrieve the number of base objects in the snapshot.- Returns:
- the base object count
-
getObjectsCount
long getObjectsCount()Retrieve the total number of objects in the snapshot.- Returns:
- the object count
-
getInternalObjects
List<IDartInternalObject> getInternalObjects()Retrieve the list of Dart objects.- Returns:
- the list of Dart objects
-
getClassIdNameMap
Retrieve the mapping of Dart object class id to class name for Dart objects, as used by this snapshot. This map can be used to find out the actual type of a Dart internal object from itsclass id.- Returns:
- a map of ids to names
-