Name Description Size
crashing-threads.rs **THIS IS HIGHLY UNSAFE** We deliberately override pthread symbols here to control how threads are launched, in order to simulate failures in this thread launching. It works on Linux and macOS only. It's only a test. Launching a thread can fail for various reasons, e.g. not enough memory resources available. We saw that issue on low-powered machines running 32-bit versions of Windows. You want to run this example with `RUSTFLAGS="-C panic=abort"` to make sure it aborts. 4308
delayed-ping-data.rs 4370
enabled-pings.rs Test that pings can be enabled/disabled at runtime. 5991
frequent-events.rs Profile how frequent event recording affects performance. Build: ```no_rust cargo build -p glean --example frequent-events --profile profiling ``` Profile using [samply](https://github.com/mstange/samply): ```no_rust samply record target/profiling/examples/frequent-events tmp ``` 3105
long-running.rs 2549
mps-delay.rs Test that the metrics ping is correctly scheduled and not repeated. Driven by `test-mps-delay.sh` which sets a timezone and fakes the system time. Note: `libfaketime` behavior on macOS seems to be incorrect for the condvar wakeups. 4099
pending-gets-removed.rs Test that pings can be enabled/disabled at runtime. 6903
ping-lifetime-flush.rs 4683
prototype.rs 2103