devtools_shared library
Classes
- AdbMemoryInfo
- Android ADB dumpsys meminfo data.
- AllocationAccumulator
- Monitor heap object allocations (in the VM). The allocation monitor will cause 'start' event exist in the HeapSample. Immediately afterwards a 'continues' event is added on each subsequent timestamp tick (HeapSample) until another monitor start event. A 'reset' event stops the 'continues' event for one timestamp tick with a 'reset' event. Immediately after the reset event a 'continues' event will again appear in the HeapSample's MemoryEventInfo - until a new monitor is started. One monitor exists per VM connection.
- AllocationMemoryJson
- Structure of the memory JSON file:
- ClassHeapDetailStats
- Entries for each class statistics
-
DecodeEncode<
T> - DeeplinkApi
- DtdApi
- EventSample
- ExtensionEvent
- ExtensionEvents
- ExtensionsApi
- HeapSample
- DevTools Plotted and JSON persisted memory information.
- HeapSpace
- HeapSpace of Dart VM collected heap data.
-
MemoryJson<
T> - RasterCache
- Engine's Raster Cache estimates.
- RegisteredService
- SamplesMemoryJson
- SemanticVersion
- SseClient
- A shim that imitates the interface of SseClient from package:sse.
Mixins
-
CompareMixin<
T>
Extensions
-
CompleterExtension
on Completer<
T>
Constants
- activeSurveyName → const String
- Survey name passed in apiSetActiveSurvey, the activeSurveyName is the property name passed as a queryParameter and is the property in ~/.devtools too.
- apiGetBaseAppSizeFile → const String
- Returns the base app size file, if present.
- apiGetDevToolsEnabled → const String
- apiGetDevToolsFirstRun → const String
- apiGetFlutterGAClientId → const String
- apiGetFlutterGAEnabled → const String
- Flutter GA properties APIs:
- apiGetLastReleaseNotesVersion → const String
- Returns the last DevTools version for which we have shown release notes.
- apiGetSurveyActionTaken → const String
- Returns the surveyActionTaken of the activeSurvey (apiSetActiveSurvey).
- apiGetSurveyShownCount → const String
- Returns the surveyShownCount of the of the activeSurvey (apiSetActiveSurvey).
- apiGetTestAppSizeFile → const String
- Returns the test app size file used for comparing two files in a diff, if present.
- apiIncrementSurveyShownCount → const String
- Increments the surveyShownCount of the of the activeSurvey (apiSetActiveSurvey).
- 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:
- apiSetActiveSurvey → const String
- Survey properties APIs: setActiveSurvey sets the survey property to fetch and save JSON values e.g., Q1-2020
- apiSetDevToolsEnabled → const String
- apiSetLastReleaseNotesVersion → const String
- Sets the last DevTools version for which we have shown release notes.
- apiSetSurveyActionTaken → const String
- Sets the surveyActionTaken of the of the activeSurvey (apiSetActiveSurvey).
- baseAppSizeFilePropertyName → 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.
- lastReleaseNotesVersionPropertyName → const String
- surveyActionTakenPropertyName → const String
- Property name to apiSetSurveyActionTaken the surveyActionTaken is the name passed in queryParameter:
- testAppSizeFilePropertyName → const String
Functions
-
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.