vm_service library
Classes
- AllocationProfile
- BoundField
-
A
BoundFieldrepresents a field bound to a particular value in anInstance. - BoundVariable
-
A
BoundVariablerepresents a local variable bound to a particular value in aFrame. - Breakpoint
-
A
Breakpointdescribes a debugger breakpoint. - Class
-
A
Classprovides information about a Dart language class. - ClassHeapStats
- ClassList
- ClassRef
-
ClassRefis a reference to aClass. - Code
-
A
Codeobject represents compiled code in the Dart VM. - CodeKind
- CodeRef
-
CodeRefis a reference to aCodeobject. - Context
-
A
Contextis a data structure which holds the captured variables for some closure. - ContextElement
- ContextRef
- CpuSample
- See VmService.getCpuSamples and CpuSamples.
- CpuSamples
- See VmService.getCpuSamples and CpuSample.
- CpuSamplesEvent
- Error
-
An
Errorrepresents a Dart language level error. This is distinct from an RPCError. - ErrorKind
- ErrorRef
-
ErrorRefis a reference to anError. - Event
-
An
Eventis an asynchronous notification from the VM. It is delivered only when the client has subscribed to an event stream using thestreamListenRPC. - EventKind
-
Adding new values to
EventKindis considered a backwards compatible change. Clients should ignore unrecognized events. - EventStreams
- An enum of available event streams.
- ExceptionPauseMode
-
An
ExceptionPauseModeindicates how the isolate pauses when an exception is thrown. - ExtensionData
-
An
ExtensionDatais an arbitrary map that can have any contents. - Field
-
A
Fieldprovides information about a Dart language field or variable. - FieldRef
-
An
FieldRefis a reference to aField. - Flag
-
A
Flagrepresents a single VM command line flag. - FlagList
-
A
FlagListrepresents the complete set of VM command line flags. - Frame
- FrameKind
-
A
FrameKindis used to distinguish different kinds ofFrameobjects. - Func
-
A
Funcrepresents a Dart language function. - FuncRef
-
An
FuncRefis 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
- Describes proxy authentication details associated with an 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 related to an HTTP request.
- HttpProfileRequestRef
- Profiling information for a single HTTP request.
- HttpProfileResponseData
- Information received in response to an initial HTTP request.
- HttpTimelineLoggingState
- An HttpTimelineLoggingState provides information about the current state of HTTP request logging for a given isolate.
- IdAssignmentPolicy
-
See
createIdZone. - IdZone
-
See
createIdZone. - IdZoneBackingBufferKind
-
See
createIdZone. - InboundReference
- See VmService.getInboundReferences.
- InboundReferences
- See VmService.getInboundReferences.
- Instance
-
An
Instancerepresents an instance of the Dart language classObj. - InstanceKind
-
Adding new values to
InstanceKindis considered a backwards compatible change. Clients should treat unrecognized instance kinds asPlainInstance. - InstanceRef
-
InstanceRefis a reference to anInstance. - InstanceSet
- See VmService.getInstances.
- Isolate
-
An
Isolateobject provides information about one isolate in the VM. - IsolateFlag
- Represents the value of a single isolate flag. See Isolate.
- IsolateGroup
-
An
IsolateGroupobject provides information about an isolate group in the VM. - IsolateGroupRef
-
IsolateGroupRefis a reference to anIsolateGroupobject. - IsolateRef
-
IsolateRefis a reference to anIsolateobject. - Library
-
A
Libraryprovides information about a Dart language library. - LibraryDependency
-
A
LibraryDependencyprovides information about an import or export. - LibraryRef
-
LibraryRefis 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
MemoryUsageobject provides heap usage information for a specific isolate at a given point in time. - Message
-
A
Messageprovides information about a pending isolate message and the function that will be invoked to handle it. - Microtask
-
A
Microtaskrepresents a Dart microtask. - NativeFunction
-
A
NativeFunctionobject is used to represent native functions in profiler samples. See CpuSamples; - NullVal
-
A
NullValobject represents the Dart language value null. - NullValRef
-
NullValRefis a reference to an aNullVal. - Obj
-
An
Objis a persistent object that is owned by some isolate. - ObjRef
-
ObjRefis a reference to aObj. - OpenFile
- Contains information about reads and writes to a currently opened file.
- OpenFileList
- OpenFileRef
- An OpenFileRef contains identifying information about a currently opened file.
- Parameter
-
A
Parameteris a representation of a function parameter. - PerfettoCpuSamples
- See VmService.getPerfettoCpuSamples.
- PerfettoTimeline
- See VmService.getPerfettoVMTimeline;
- PortList
-
A
PortListcontains a list of ports associated with some isolate. - ProcessMemoryItem
- ProcessMemoryUsage
- See VmService.getProcessMemoryUsage.
- ProfileFunction
-
A
ProfileFunctioncontains profiling information about a Dart or native function. - Protocol
- See VmService.getSupportedProtocols.
- ProtocolList
-
A
ProtocolListcontains a list of all protocols supported by the service instance. - QueuedMicrotasks
-
A
QueuedMicrotasksobject is a snapshot containing information about the microtasks that were queued in a certain isolate at a certain time. - ReloadReport
- Response
-
Every non-error response returned by the Service Protocol extends
Response. By using thetypeproperty, the client can determine which type of response has been provided. - RetainingObject
- See RetainingPath.
- RetainingPath
- See VmService.getRetainingPath.
- Script
-
A
Scriptprovides information about a Dart language script. - ScriptList
- ScriptRef
-
ScriptRefis a reference to aScript. - Sentinel
-
A
Sentinelis used to indicate that the normal response is not available. - SentinelKind
-
A
SentinelKindis used to distinguish different kinds ofSentinelobjects. - 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
SourceLocationclass is used to designate a position or range in some script. - SourceReport
-
The
SourceReportclass represents a set of reports tied to source locations in an isolate. - SourceReportCoverage
-
The
SourceReportCoverageclass represents coverage information for one SourceReportRange. - SourceReportKind
- SourceReportRange
-
The
SourceReportRangeclass 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
Stackclass represents the various components of a Dart stack trace for a given isolate. - StepOption
-
A
StepOptionindicates which form of stepping is requested in aresumeRPC. - Success
-
The
Successtype is used to indicate that an operation completed successfully. - Timeline
- See VmService.getVMTimeline;
- TimelineEvent
-
An
TimelineEventis an arbitrary map that contains aTrace Event Formatevent. - TimelineFlags
- Timestamp
- TypeArguments
-
A
TypeArgumentsobject represents the type argument vector for some instantiated generic type. - TypeArgumentsRef
-
TypeArgumentsRefis a reference to aTypeArgumentsobject. - TypeParameters
-
A
TypeParametersobject represents the type argument vector for some uninstantiated generic type. - TypeParametersRef
-
TypeParametersRefis a reference to aTypeParametersobject. - UnresolvedSourceLocation
-
The
UnresolvedSourceLocationclass 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
-
VMRefis a reference to aVMobject. - VmService
Enums
Extensions
Constants
- optional → const String
- @optional
- vmServiceVersion → const String
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) -
VmServiceFactory<
T extends VmService> = T Function({DisposeHandler? disposeHandler, required Stream inStream, Log? log, Future? streamClosed, required void writeMessage(String message), String? wsUri})
Exceptions / Errors
- HttpProfileRequestError
-
An Error thrown when attempting to inspect fields in a
HttpProfileRequestData instance when
hasErroristrue. - RPCError
- SentinelException
- Thrown when an RPC response is a Sentinel.