mirror of
https://github.com/servo/servo.git
synced 2025-06-23 00:24:35 +01:00
Measure heap memory usage for more types. Fixes #6951
This commit is contained in:
parent
94c8dcd575
commit
45145108da
175 changed files with 669 additions and 94 deletions
|
@ -6,6 +6,7 @@ use image::base::Image;
|
|||
use ipc_channel::ipc::{self, IpcSender};
|
||||
use url::Url;
|
||||
use std::sync::Arc;
|
||||
use util::mem::HeapSizeOf;
|
||||
|
||||
/// This is optionally passed to the image cache when requesting
|
||||
/// and image, and returned to the specified event loop when the
|
||||
|
@ -37,7 +38,7 @@ pub enum ImageState {
|
|||
}
|
||||
|
||||
/// The returned image.
|
||||
#[derive(Clone, Deserialize, Serialize)]
|
||||
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
|
||||
pub enum ImageResponse {
|
||||
/// The requested image was loaded.
|
||||
Loaded(Arc<Image>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue