mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add profiling to image decoding.
This extracts some independently useful parts of <https://github.com/servo/servo/pull/4215>.
This commit is contained in:
parent
b84f620b26
commit
c8de895094
4 changed files with 46 additions and 24 deletions
|
@ -88,6 +88,7 @@ pub enum TimeProfilerCategory {
|
|||
PaintingPerTile,
|
||||
PaintingPrepBuff,
|
||||
Painting,
|
||||
ImageDecoding,
|
||||
}
|
||||
|
||||
impl Formatable for TimeProfilerCategory {
|
||||
|
@ -125,6 +126,7 @@ impl Formatable for TimeProfilerCategory {
|
|||
TimeProfilerCategory::PaintingPerTile => "Painting Per Tile",
|
||||
TimeProfilerCategory::PaintingPrepBuff => "Buffer Prep",
|
||||
TimeProfilerCategory::Painting => "Painting",
|
||||
TimeProfilerCategory::ImageDecoding => "Image Decoding",
|
||||
};
|
||||
format!("{}{}", padding, name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue