gecko-dev/servo/components/profile_traits
Connor Imes 600c23a426 servo: Merge #14272 - Fix energy profiling feature (from connorimes:fix-energy-profiling-feature); r=Manishearth
<!-- Please describe your changes on the following line: -->
The `energy-profiling` feature was broken at some point when `#![deny(unsafe_code)]` was introduced to the `profile_traits` component.  This PR sets `#[allow(unsafe_code)]` on the `energy` module.
There is an additional commit (my original intention) to update the profiler logging to use the current `ProfilerCategory` enum values for (typically developer-only) performance/power analysis.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it fixes is a compile error for a feature.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 1e42e4d9cec1a46a0a3009095c6030425c0a8845
2016-11-19 02:32:00 -06:00
..
Cargo.toml servo: Merge #14165 - Supress panics for ProfilerChan sends (from servo:jdm-patch-1); r=nox 2016-11-14 16:12:34 -06:00
energy.rs servo: Merge #8692 - Ensure crate are alphabetically sorted (from GuillaumeGomez:patch-1); r=Wafflespeanut 2015-11-28 19:05:11 +05:01
lib.rs servo: Merge #14272 - Fix energy profiling feature (from connorimes:fix-energy-profiling-feature); r=Manishearth 2016-11-19 02:32:00 -06:00
mem.rs servo: Merge #14165 - Supress panics for ProfilerChan sends (from servo:jdm-patch-1); r=nox 2016-11-14 16:12:34 -06:00
time.rs servo: Merge #14165 - Supress panics for ProfilerChan sends (from servo:jdm-patch-1); r=nox 2016-11-14 16:12:34 -06:00