servo/tests/unit/net
Nicholas Nethercote 4506f0d30c Replace all uses of the heapsize crate with malloc_size_of.
Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`.
`malloc_size_of` is better -- it handles various cases that `heapsize` does not
-- so this patch changes Servo to use `malloc_size_of`.

This patch makes the following changes to the `malloc_size_of` crate.

- Adds `MallocSizeOf` trait implementations for numerous types, some built-in
  (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`).

- Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't
  support that operation.

- For `HashSet`/`HashMap`, falls back to a computed estimate when
  `enclosing_size_of_op` isn't available.

- Adds an extern "C" `malloc_size_of` function that does the actual heap
  measurement; this is based on the same functions from the `heapsize` crate.

This patch makes the following changes elsewhere.

- Converts all the uses of `heapsize` to instead use `malloc_size_of`.

- Disables the "heapsize"/"heap_size" feature for the external crates that
  provide it.

- Removes the `HeapSizeOf` implementation from `hashglobe`.

- Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of`
  doesn't derive those types, unlike `heapsize`.
2017-10-18 22:20:37 +11:00
..
parsable_mime Fix off-by-one error in MIME pattern matching 2016-02-23 11:53:32 +00:00
Cargo.toml Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
chrome_loader.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
cookie.rs Update Hyper and OpenSSL 2017-03-31 16:32:21 +02:00
cookie_http_state.rs Update Hyper and OpenSSL 2017-03-31 16:32:21 +02:00
cookie_http_state_utils.py Use common cookie struct add cookie webdriver cmds 2016-06-25 22:24:35 +00:00
data_loader.rs Introduce service-worker mode 2017-06-22 23:48:07 -07:00
fetch.rs Fix unit tests for updated CORS preflight fetch 2017-08-18 16:30:25 -07:00
file_loader.rs added test for https://github.com/servo/servo/issues/10548 2016-04-18 03:34:25 +03:00
filemanager_thread.rs Remove the unused CancellationListener arguments in filemanager_thread. 2016-11-24 11:46:30 +01:00
hsts.rs Move hosts module into net crate. Remove obsolete functions. 2017-04-06 19:25:47 +09:00
http_loader.rs Auto merge of #17749 - SergeevPavel:extra-space-check, r=jdm 2017-07-19 16:03:51 -07:00
lib.rs Fix some "unused" warnings 2017-06-06 16:58:35 +02:00
mime_classifier.rs Untry 2017-06-18 13:21:51 +02:00
resource_thread.rs Move hosts module into net crate. Remove obsolete functions. 2017-04-06 19:25:47 +09:00
subresource_integrity.rs Implement Subresource Integrity 2017-01-08 08:52:18 +05:30
test.jpeg Chunked ReadFile from file manager 2016-07-25 19:39:16 +02:00