mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Measure ImageValue objects.
We have about 11,500 of these when loading gmail in a Stylo-enabled build, from SpecifiedUrls; the objects themselves account for about 1.3 MiB of memory, and the strings within them about 2.9 MiB. We also have a very small number of them on the Gecko side.
This commit is contained in:
parent
49f753523a
commit
a185393cee
2 changed files with 28 additions and 4 deletions
|
@ -1000,6 +1000,10 @@ extern "C" {
|
|||
extern "C" {
|
||||
pub fn Gecko_ImageValue_Create(aURI: ServoBundledURI) -> *mut ImageValue;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_ImageValue_SizeOfIncludingThis(aImageValue: *mut ImageValue)
|
||||
-> usize;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_SetLayerImageImageValue(image: *mut nsStyleImage,
|
||||
aImageValue: *mut ImageValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue