blob: 0e21806af4385fbe36a5f7ee37d1b98d16b19845 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'vmo_writer.dart';
const int _defaultVmoSizeBytes = 256 * 1024;
/// Inspect exposes a structured tree of internal component state in a VMO.
class Inspect {
final VmoWriter _vmo;
/// Initialize the VMO with given or default size.
Inspect([vmoSize = _defaultVmoSizeBytes]) : _vmo = VmoWriter(vmoSize);
/// Placeholder for the upper-level API.
bool get valid => _vmo != null;
}