vm_service_lib library

A library to access the VM Service API.

The main entry-point for this library is the VmService class.

Classes

AllocationProfile
BoundField
A BoundField represents a field bound to a particular value in an Instance. [...]
BoundVariable
A BoundVariable represents a local variable bound to a particular value in a Frame. [...]
Breakpoint
A Breakpoint describes a debugger breakpoint. [...]
Class
A Class provides information about a Dart language class.
ClassHeapStats
ClassList
ClassRef
ClassRef is a reference to a Class.
Code
A Code object represents compiled code in the Dart VM.
CodeKind
CodeRef
CodeRef is a reference to a Code object.
CodeRegion
Context
A Context is a data structure which holds the captured variables for some closure.
ContextElement
ContextRef
CpuProfile
Error
An Error represents a Dart language level error. This is distinct from an rpc error.
ErrorKind
ErrorRef
ErrorRef is a reference to an Error.
Event
An Event is an asynchronous notification from the VM. It is delivered only when the client has subscribed to an event stream using the streamListen RPC. [...]
EventKind
Adding new values to EventKind is considered a backwards compatible change. Clients should ignore unrecognized events.
EventStreams
An enum of available event streams.
ExceptionPauseMode
An ExceptionPauseMode indicates how the isolate pauses when an exception is thrown.
ExtensionData
An ExtensionData is an arbitrary map that can have any contents.
Field
A Field provides information about a Dart language field or variable.
FieldRef
An FieldRef is a reference to a Field.
Flag
A Flag represents a single VM command line flag.
FlagList
A FlagList represents the complete set of VM command line flags.
Frame
FrameKind
A FrameKind is used to distinguish different kinds of Frame objects.
Func
A Func represents a Dart language function.
FuncRef
An FuncRef is a reference to a Func.
HeapSpace
Instance
An Instance represents an instance of the Dart language class Obj.
InstanceKind
Adding new values to InstanceKind is considered a backwards compatible change. Clients should treat unrecognized instance kinds as PlainInstance.
InstanceRef
InstanceRef is a reference to an Instance.
InstanceSet
See getInstances.
Isolate
An Isolate object provides information about one isolate in the VM.
IsolateRef
IsolateRef is a reference to an Isolate object.
Library
A Library provides information about a Dart language library. [...]
LibraryDependency
A LibraryDependency provides information about an import or export.
LibraryRef
LibraryRef is a reference to a Library.
Log
A logging handler you can pass to a VmService instance in order to get notifications of non-fatal service protocol warnings and errors.
LogRecord
MapAssociation
MemoryUsage
A MemoryUsage object provides heap usage information for a specific isolate at a given point in time.
Message
A Message provides information about a pending isolate message and the function that will be invoked to handle it.
NullVal
A NullVal object represents the Dart language value null.
NullValRef
NullValRef is a reference to an a NullVal.
Obj
An Obj is a persistent object that is owned by some isolate.
ObjRef
ObjRef is a reference to a Obj.
ProfileFunction
ReloadReport
Response
Every non-error response returned by the Service Protocol extends Response. By using the type property, the client can determine which type of response has been provided.
RPCError
Script
A Script provides information about a Dart language script. [...]
ScriptList
ScriptRef
ScriptRef is a reference to a Script.
Sentinel
A Sentinel is used to indicate that the normal response is not available. [...]
SentinelKind
A SentinelKind is used to distinguish different kinds of Sentinel objects. [...]
ServiceExtensionRegistry
A registry of custom service extensions to VmServerConnections in which they were registered.
SourceLocation
The SourceLocation class is used to designate a position or range in some script.
SourceReport
The SourceReport class represents a set of reports tied to source locations in an isolate.
SourceReportCoverage
The SourceReportCoverage class represents coverage information for one SourceReportRange. [...]
SourceReportKind
SourceReportRange
The SourceReportRange class represents a range of executable code (function, method, constructor, etc) in the running program. It is part of a SourceReport. [...]
Stack
StepOption
A StepOption indicates which form of stepping is requested in a resume RPC.
Success
The Success type is used to indicate that an operation completed successfully.
Timeline
TimelineEvent
An TimelineEvent is an arbitrary map that contains a Trace Event Format event.
TimelineFlags
Timestamp
TypeArguments
A TypeArguments object represents the type argument vector for some instantiated generic type.
TypeArgumentsRef
TypeArgumentsRef is a reference to a TypeArguments object.
UnresolvedSourceLocation
The UnresolvedSourceLocation class is used to refer to an unresolved breakpoint location. As such, it is meant to approximate the final location of the breakpoint but it is not exact. [...]
Version
See Versioning.
VM
VMRef
VMRef is a reference to a VM object.
VmServerConnection
A Dart VM Service Protocol connection that delegates requests to a VmServiceInterface implementation. [...]
VmService
VmServiceInterface
A class representation of the Dart VM Service Protocol. [...]

Constants

optional → const String
@optional
'optional'
undocumented → const String
@undocumented
'undocumented'
vmServiceVersion → const String
'3.22.0'

Functions

createServiceObject(dynamic json, List<String> expectedTypes) → Object
decodeBase64(String str) → String
Decode a string in Base64 encoding into the equivalent non-encoded string. This is useful for handling the results of the Stdout or Stderr events.

Typedefs

DisposeHandler() → Future
ServiceCallback(Map<String, dynamic> params) → Future<Map<String, dynamic>>