devtools_shared library

Classes

AdbMemoryInfo
Android ADB dumpsys meminfo data.
AllocationAccumulator
Monitor heap object allocations (in the VM).
AllocationMemoryJson
Structure of the memory JSON file
AppSizeApi
ClassHeapDetailStats
Entries for each class's statistics.
DecodeEncode<T>
DeeplinkApi
DtdApi
DtdInfo
Information about a Dart Tooling Daemon instance.
EventSample
ExtensionEvent
ExtensionEvents
ExtensionsApi
HeapSample
DevTools Plotted and JSON persisted memory information.
HeapSpace
HeapSpace of Dart VM collected heap data.
MemoryJson<T>
PreferencesApi
RasterCache
Engine's Raster Cache estimates.
RegisteredService
ReleaseNotesApi
SamplesMemoryJson
SemanticVersion
SseClient
A shim that imitates the interface of SseClient from package:sse.
SurveyApi

Enums

Json

Mixins

CompareMixin<T>
Serializable
Mixin to declare a class as serializable.

Extensions

CompleterExtension on Completer<T>

Constants

apiGetDevToolsEnabled → const String
apiGetDevToolsFirstRun → const String
apiGetFlutterGAClientId → const String
apiGetFlutterGAEnabled → const String
Flutter GA properties APIs:
apiNotifyForVmServiceConnection → const String
Notifies the DevTools server when a DevTools app client connects to a new VM service.
apiParameterValueKey → const String
Key used for any request or response to specify a value argument.
apiParameterVmServiceConnected → const String
apiPrefix → const String
All server APIs prefix:
apiResetDevTools → const String
DevTools GA properties APIs:
apiSetDevToolsEnabled → const String
devToolsEnabledPropertyName → const String
Property name to apiSetDevToolsEnabled the DevToolsEnabled is the name used in queryParameter:
flutterEngineRasterCache → const String
Flutter engine returns estimate how much memory is used by layer/picture raster cache entries in bytes.
flutterListViews → const String
flutterMemory → const RegisteredService
Flutter memory service registered by Flutter Tools.

Functions

deserialize<T>(dynamic json, FromJson<T> deserializer) → T
Deserializes an object if it is serialized.
deserializeNullable<T>(dynamic json, FromJson<T> deserializer) → T?
Deserializes an object if it is serialized.
normalizeVmServiceUri(String value) Uri?
Returns a normalized vm service uri.
packageRootFromFileUriString(String fileUriString, {DartToolingDaemon? dtd, bool throwOnDtdSearchFailed = false}) Future<String>
Attempts to detect the package root of fileUriString, which is expected to be a proper file URI (i.e. starts with "file://").
runWithRetry({required FutureOr<void> callback(), required int maxRetries, Duration retryDelay = const Duration(milliseconds: 250), FutureOr<bool> stopCondition()?, FutureOr<void> onRetry(int attempt)?}) Future<void>
Runs callback and retries if an exception is thrown.

Typedefs

DTDConnectionInfo = ({String? secret, String? uri})
Describes an instance of the Dart Tooling Daemon.
FromJson<T> = T Function(Map<String, dynamic> json)