File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Tests] ( https://github.com/bgr360/bevy_datasize/actions/workflows/tests.yml/badge.svg )] ( https://github.com/bgr360/bevy_datasize/actions/workflows/tests.yml )
4
4
5
- This is a library for tracking memory usage in [ Bevy] ( https://lib.rs/bevy ) apps.
5
+ ` bevy_datasize ` is a library for tracking memory usage in
6
+ [ Bevy] ( https://lib.rs/bevy ) apps.
6
7
7
- It is based on the [ ` datasize ` ] ( https://lib.rs/datasize ) crate.
8
+ ` bevy_datasize ` uses the ` DataSize ` trait from the [ ` datasize ` ] crate to
9
+ estimate the runtime memory usage of any components, resources, or assets that
10
+ are registered with the ` MemoryUsagePlugin ` .
11
+
12
+ The ` DataSize ` trait can be derived for your own custom types, and you can
13
+ inject custom estimators for third party types that do not implement ` DataSize ` .
14
+ See the [ ` datasize ` ] docs for more info on that.
15
+
16
+ [ `datasize` ] : https://docs.rs/datasize
17
+
18
+ ## Docs
19
+
20
+ Rustdocs for the main branch can be found
21
+ [ here] ( https://bgr360.github.io/bevy_datasize/bevy_datasize/ )
8
22
9
23
## Example
10
24
@@ -39,11 +53,6 @@ fn print_datasize(memory_usage: Res<MemoryUsage>) {
39
53
}
40
54
```
41
55
42
- ## Docs
43
-
44
- Rustdocs for the main branch can be found
45
- [ here] ( https://bgr360.github.io/bevy_datasize/bevy_datasize/ )
46
-
47
56
## License
48
57
49
58
Licensed under either of
You can’t perform that action at this time.
0 commit comments