Struct draw2d::graphics::vulkan::device_allocator::ConsoleMarkdownReport [−][src]
pub struct ConsoleMarkdownReport { /* fields omitted */ }
Expand description
Build a human-friendly markdown report which is printed directly to the console.
Reports Look similar to the following:-
| Metric Name | Value | | -------------------------- | ------------ | | max concurrent allocations | 6 | | total allocation count | 7 | | leaked allocation count | 0 | | mean allocation size | 25.07 KiB | | biggest allocation | 87 KiB | | smallest allocation | 256 B | # Metrics By Memory Type Index ## Memory Type 7 | Metric Name | Value | | -------------------------- | ------------ | | max concurrent allocations | 2 | | total allocation count | 2 | | leaked allocation count | 0 | | mean allocation size | 43.75 KiB | | biggest allocation | 87 KiB | | smallest allocation | 512 B | ## Memory Type 8 | Metric Name | Value | | -------------------------- | ------------ | | max concurrent allocations | 4 | | total allocation count | 5 | | leaked allocation count | 0 | | mean allocation size | 17.599 KiB | | biggest allocation | 85.5 KiB | | smallest allocation | 256 B |
Implementations
Create a report which renders metrics as markdown on the terminal.
The caller is responsible for ensuring that the instance and physical device both live for at least as long as the report.
Auto Trait Implementations
impl RefUnwindSafe for ConsoleMarkdownReport
impl Send for ConsoleMarkdownReport
impl Sync for ConsoleMarkdownReport
impl Unpin for ConsoleMarkdownReport
impl UnwindSafe for ConsoleMarkdownReport
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.