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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.