blob: f3c0bc07b1a0d80ff307850455baf23ec2442fd2 [file] [log] [blame]
// Copyright 2022 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.
#ifndef SRC_STORAGE_LIB_VFS_CPP_INSPECT_OPERATION_TRACKER_H_
#define SRC_STORAGE_LIB_VFS_CPP_INSPECT_OPERATION_TRACKER_H_
#include <lib/zx/time.h>
#include <zircon/status.h>
#include <functional>
#include <optional>
//
// Provides tracking of various filesystem operations, including stubs for host builds.
//
#include "src/storage/lib/vfs/cpp/inspect/operation_tracker/operation_tracker_base.h"
#ifdef __Fuchsia__
#include "src/storage/lib/vfs/cpp/inspect/operation_tracker/operation_tracker_fuchsia.h"
#else
#include "src/storage/lib/vfs/cpp/inspect/operation_tracker/operation_tracker_stub.h"
#endif
namespace fs_inspect::internal {
#ifdef __Fuchsia__
using OperationTrackerType = OperationTrackerFuchsia;
#else
using OperationTrackerType = OperationTrackerStub;
#endif
} // namespace fs_inspect::internal
#endif // SRC_STORAGE_LIB_VFS_CPP_INSPECT_OPERATION_TRACKER_H_