Add profiling to image decoding.

This extracts some independently useful parts of
<https://github.com/servo/servo/pull/4215>.
This commit is contained in:
Ankit Agrawal 2014-12-03 16:43:12 -05:00 committed by Ms2ger
parent b84f620b26
commit c8de895094
4 changed files with 46 additions and 24 deletions

View file

@ -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)
}