From 5018c8ffae04532464c44888fa72fa18e40e53c8 Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Mon, 1 Apr 2024 09:38:50 -0700 Subject: [PATCH] Reorganize code to prepare for more features. (#227) --- pkgs/memory_usage/lib/DEPENDENCIES.md | 7 ++++++- pkgs/memory_usage/lib/memory_usage.dart | 4 ++-- pkgs/memory_usage/lib/src/DEPENDENCIES.md | 16 -------------- .../lib/src/auto_snapshotting/DEPENDENCIES.md | 21 +++++++++++++++++++ .../{ => auto_snapshotting}/_snapshot.dart | 0 .../{ => auto_snapshotting}/_usage_event.dart | 0 .../src/{ => auto_snapshotting}/_util.dart | 0 .../auto_snapshotting.dart} | 0 .../src/{ => auto_snapshotting}/model.dart | 0 pkgs/memory_usage/test/_snapshot_test.dart | 2 +- 10 files changed, 30 insertions(+), 20 deletions(-) delete mode 100644 pkgs/memory_usage/lib/src/DEPENDENCIES.md create mode 100644 pkgs/memory_usage/lib/src/auto_snapshotting/DEPENDENCIES.md rename pkgs/memory_usage/lib/src/{ => auto_snapshotting}/_snapshot.dart (100%) rename pkgs/memory_usage/lib/src/{ => auto_snapshotting}/_usage_event.dart (100%) rename pkgs/memory_usage/lib/src/{ => auto_snapshotting}/_util.dart (100%) rename pkgs/memory_usage/lib/src/{usage_tracking.dart => auto_snapshotting/auto_snapshotting.dart} (100%) rename pkgs/memory_usage/lib/src/{ => auto_snapshotting}/model.dart (100%) diff --git a/pkgs/memory_usage/lib/DEPENDENCIES.md b/pkgs/memory_usage/lib/DEPENDENCIES.md index 4fefc2f3..d3bf91b5 100644 --- a/pkgs/memory_usage/lib/DEPENDENCIES.md +++ b/pkgs/memory_usage/lib/DEPENDENCIES.md @@ -1,6 +1,6 @@ ```mermaid @@ -8,3 +8,8 @@ flowchart TD; memory_usage.dart-->src; ``` +### Inversions +In this folder: 0 + +Including sub-folders: 0 + diff --git a/pkgs/memory_usage/lib/memory_usage.dart b/pkgs/memory_usage/lib/memory_usage.dart index 9852fe85..ca8882b0 100644 --- a/pkgs/memory_usage/lib/memory_usage.dart +++ b/pkgs/memory_usage/lib/memory_usage.dart @@ -2,5 +2,5 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -export 'src/model.dart'; -export 'src/usage_tracking.dart'; +export 'src/auto_snapshotting/auto_snapshotting.dart'; +export 'src/auto_snapshotting/model.dart'; diff --git a/pkgs/memory_usage/lib/src/DEPENDENCIES.md b/pkgs/memory_usage/lib/src/DEPENDENCIES.md deleted file mode 100644 index d89ed0a9..00000000 --- a/pkgs/memory_usage/lib/src/DEPENDENCIES.md +++ /dev/null @@ -1,16 +0,0 @@ - - -```mermaid -flowchart TD; -_snapshot.dart-->_util.dart; -_snapshot.dart-->model.dart; -_usage_event.dart-->_util.dart; -_usage_event.dart-->model.dart; -usage_tracking.dart-->_snapshot.dart; -usage_tracking.dart-->_usage_event.dart; -usage_tracking.dart-->model.dart; -``` - diff --git a/pkgs/memory_usage/lib/src/auto_snapshotting/DEPENDENCIES.md b/pkgs/memory_usage/lib/src/auto_snapshotting/DEPENDENCIES.md new file mode 100644 index 00000000..a2800ee4 --- /dev/null +++ b/pkgs/memory_usage/lib/src/auto_snapshotting/DEPENDENCIES.md @@ -0,0 +1,21 @@ + + +```mermaid +flowchart TD; +_snapshot.dart-->_util.dart; +_snapshot.dart-->model.dart; +_usage_event.dart-->_util.dart; +_usage_event.dart-->model.dart; +auto_snapshotting.dart-->_snapshot.dart; +auto_snapshotting.dart-->_usage_event.dart; +auto_snapshotting.dart-->model.dart; +``` + +### Inversions +In this folder: 0 + +Including sub-folders: 0 + diff --git a/pkgs/memory_usage/lib/src/_snapshot.dart b/pkgs/memory_usage/lib/src/auto_snapshotting/_snapshot.dart similarity index 100% rename from pkgs/memory_usage/lib/src/_snapshot.dart rename to pkgs/memory_usage/lib/src/auto_snapshotting/_snapshot.dart diff --git a/pkgs/memory_usage/lib/src/_usage_event.dart b/pkgs/memory_usage/lib/src/auto_snapshotting/_usage_event.dart similarity index 100% rename from pkgs/memory_usage/lib/src/_usage_event.dart rename to pkgs/memory_usage/lib/src/auto_snapshotting/_usage_event.dart diff --git a/pkgs/memory_usage/lib/src/_util.dart b/pkgs/memory_usage/lib/src/auto_snapshotting/_util.dart similarity index 100% rename from pkgs/memory_usage/lib/src/_util.dart rename to pkgs/memory_usage/lib/src/auto_snapshotting/_util.dart diff --git a/pkgs/memory_usage/lib/src/usage_tracking.dart b/pkgs/memory_usage/lib/src/auto_snapshotting/auto_snapshotting.dart similarity index 100% rename from pkgs/memory_usage/lib/src/usage_tracking.dart rename to pkgs/memory_usage/lib/src/auto_snapshotting/auto_snapshotting.dart diff --git a/pkgs/memory_usage/lib/src/model.dart b/pkgs/memory_usage/lib/src/auto_snapshotting/model.dart similarity index 100% rename from pkgs/memory_usage/lib/src/model.dart rename to pkgs/memory_usage/lib/src/auto_snapshotting/model.dart diff --git a/pkgs/memory_usage/test/_snapshot_test.dart b/pkgs/memory_usage/test/_snapshot_test.dart index fcbdfaa2..e0556a93 100644 --- a/pkgs/memory_usage/test/_snapshot_test.dart +++ b/pkgs/memory_usage/test/_snapshot_test.dart @@ -4,7 +4,7 @@ import 'dart:io'; -import 'package:memory_usage/src/_snapshot.dart'; +import 'package:memory_usage/src/auto_snapshotting/_snapshot.dart'; import 'package:test/test.dart'; void main() {