vm_service library Null safety
Classes
- AllocationProfile
- BoundField
-
A
BoundField
represents a field bound to a particular value in anInstance
. - BoundVariable
-
A
BoundVariable
represents a local variable bound to a particular value in aFrame
. - 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 aClass
. - Code
-
A
Code
object represents compiled code in the Dart VM. - CodeKind
- CodeRef
-
CodeRef
is a reference to aCode
object. - Context
-
A
Context
is a data structure which holds the captured variables for some closure. - ContextElement
- ContextRef
- CpuSample
-
See
getCpuSamples
and CpuSamples. - CpuSamples
-
See
getCpuSamples
and CpuSample. - CpuSamplesEvent
- Error
-
An
Error
represents a Dart language level error. This is distinct from anRPC error
. - ErrorKind
- ErrorRef
-
ErrorRef
is a reference to anError
. - Event
-
An
Event
is an asynchronous notification from the VM. It is delivered only when the client has subscribed to an event stream using thestreamListen
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 aField
. - 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 ofFrame
objects. - Func
-
A
Func
represents a Dart language function. - FuncRef
-
An
FuncRef
is a reference to aFunc
. - HeapSnapshotClass
- A representation of a class type captured in a memory snapshot.
- HeapSnapshotExternalProperty
- A representation of an external property captured in a memory snapshot.
- HeapSnapshotField
- A representation of a field captured in a memory snapshot.
- HeapSnapshotGraph
- A graph representation of a heap snapshot.
- HeapSnapshotObject
- A representation of an object instance captured in a memory snapshot.
- HeapSnapshotObjectLengthData
- Represents the length of an object.
- HeapSnapshotObjectNoData
- Represents that no data is associated with an object.
- HeapSnapshotObjectNullData
- Represents that the data associated with an object is null.
- HttpProfile
- A collection of HTTP request data collected by the profiler.
- HttpProfileProxyData
- Proxy authentication details associated with a HttpProfileRequest.
- HttpProfileRequest
- Profiling information for a single HTTP request, including request and response body data.
- HttpProfileRequestData
- Information sent as part of the initial HTTP request.
- HttpProfileRequestEvent
- Describes an event that has occurred while issuing a HTTP request.
- HttpProfileRequestRef
- Profiling information for a single HTTP request.
- HttpProfileResponseData
- Information received in response to an initial HTTP request.
- HttpTimelineLoggingState
- A HttpTimelineLoggingState provides information about the current state of HTTP request logging for a given isolate.
- InboundReference
-
See
getInboundReferences
. - InboundReferences
-
See
getInboundReferences
. - Instance
-
An
Instance
represents an instance of the Dart language classObj
. - InstanceKind
-
Adding new values to
InstanceKind
is considered a backwards compatible change. Clients should treat unrecognized instance kinds asPlainInstance
. - InstanceRef
-
InstanceRef
is a reference to anInstance
. - InstanceSet
-
See
getInstances
. - Isolate
-
An
Isolate
object provides information about one isolate in the VM. - IsolateFlag
- Represents the value of a single isolate flag. See Isolate.
- IsolateGroup
-
An
IsolateGroup
object provides information about an isolate group in the VM. - IsolateGroupRef
-
IsolateGroupRef
is a reference to anIsolateGroup
object. - IsolateRef
-
IsolateRef
is a reference to anIsolate
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 aLibrary
. - 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. - NativeFunction
-
A
NativeFunction
object is used to represent native functions in profiler samples. See CpuSamples; - NullVal
-
A
NullVal
object represents the Dart language value null. - NullValRef
-
NullValRef
is a reference to an aNullVal
. - Obj
-
An
Obj
is a persistent object that is owned by some isolate. - ObjRef
-
ObjRef
is a reference to aObj
. - OpenFile
- A File contains information about reads and writes to a currently opened file.
- OpenFileList
- OpenFileRef
- A OpenFileRef contains identifying information about a currently opened file.
- Parameter
-
A
Parameter
is a representation of a function parameter. - PortList
-
A
PortList
contains a list of ports associated with some isolate. - ProcessMemoryItem
- ProcessMemoryUsage
-
Set
getProcessMemoryUsage
. - ProfileFunction
-
A
ProfileFunction
contains profiling information about a Dart or native function. - Protocol
-
See
getSupportedProtocols
. - ProtocolList
-
A
ProtocolList
contains a list of all protocols supported by the service instance. - ReloadReport
- Response
-
Every non-error response returned by the Service Protocol extends
Response
. By using thetype
property, the client can determine which type of response has been provided. - RetainingObject
- See RetainingPath.
- RetainingPath
-
See
getRetainingPath
. - Script
-
A
Script
provides information about a Dart language script. - ScriptList
- ScriptRef
-
ScriptRef
is a reference to aScript
. - Sentinel
-
A
Sentinel
is used to indicate that the normal response is not available. - SentinelKind
-
A
SentinelKind
is used to distinguish different kinds ofSentinel
objects. - ServiceExtensionRegistry
- A registry of custom service extensions to VmServerConnections in which they were registered.
- SocketProfile
- A SocketProfile provides information about statistics of sockets.
- SocketProfilingState
- A SocketProfilingState provides information about the current state of socket profiling for a given isolate.
- SocketStatistic
- 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. - SpawnedProcess
- A SpawnedProcess contains startup information of a spawned process.
- SpawnedProcessList
- SpawnedProcessRef
- A SpawnedProcessRef contains identifying information about a spawned process.
- Stack
-
The
Stack
class represents the various components of a Dart stack trace for a given isolate. - StepOption
-
A
StepOption
indicates which form of stepping is requested in aresume
RPC. - Success
-
The
Success
type is used to indicate that an operation completed successfully. - Timeline
- TimelineEvent
-
An
TimelineEvent
is an arbitrary map that contains aTrace 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 aTypeArguments
object. - TypeParameters
-
A
TypeParameters
object represents the type argument vector for some uninstantiated generic type. - 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. - UriList
- Version
-
See
Versioning
. - VM
- VMRef
-
VMRef
is a reference to aVM
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.
Extensions
Constants
- optional → const String
-
@optional
'optional'
- vmServiceVersion → const String
-
'3.60.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 Function()
-
ServiceCallback
= Future<
Map< Function(Map<String, dynamic> >String, dynamic> params)
Exceptions / Errors
- HttpProfileRequestError
-
An Error thrown when attempting to inspect fields in a
HttpProfileRequestData instance when
hasError
istrue
. - RPCError
- SentinelException
- Thrown when an RPC response is a Sentinel.