Skip to content

Commit

Permalink
Merge pull request #430 from mstange/enforce-quota
Browse files Browse the repository at this point in the history
Add a way to limit the disk usage of symbol files
  • Loading branch information
mstange authored Nov 26, 2024
2 parents 9c7c2e1 + bb2b0d4 commit 4d36b21
Show file tree
Hide file tree
Showing 13 changed files with 909 additions and 34 deletions.
99 changes: 97 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"fxprof-processed-profile",
"gecko_profile",
"samply-api",
"samply-quota-manager",
"samply-symbols",
"samply",
"wholesym",
Expand Down
38 changes: 15 additions & 23 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
};

flake-utils.url = "github:numtide/flake-utils";
Expand All @@ -20,7 +19,6 @@
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};

Expand Down
17 changes: 17 additions & 0 deletions samply-quota-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "samply-quota-manager"
version = "0.1.0"
authors = ["Markus Stange <[email protected]>"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.77" # needed by rusqlite_migration
description = "Limit the total size of a directory by deleting least-recently-used files"
repository = "https://github.com/mstange/samply/"
readme = "README.md"

[dependencies]
bytesize = "1.3.0"
log = "0.4.21"
tokio = { version = "1.39", features = ["rt", "rt-multi-thread", "sync", "macros"] }
rusqlite = { version = "0.32.0", features = ["bundled"] }
rusqlite_migration = "1.2.0"
2 changes: 2 additions & 0 deletions samply-quota-manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# samply-quota-manager

Loading

0 comments on commit 4d36b21

Please sign in to comment.