mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Auto merge of #23521 - oneturkmen:profile-remove-opts-get, r=jdm
Profile: removed opts::get() <!-- Please describe your changes on the following line: --> Removed opts::get() from `profile` component. **Note** that `profile_traits` component is the only component that uses single `opts::get().signpost` for IpcBytesReceiver and IpcReceiver structs, i.e. for recv() type method. --- <!-- 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 - [x] These changes fix *partially* #22854 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because these are cleanup changes. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23521) <!-- Reviewable:end -->
This commit is contained in:
commit
a634f05024
4 changed files with 37 additions and 20 deletions
|
@ -12,7 +12,7 @@ use std::time::Duration;
|
|||
|
||||
#[test]
|
||||
fn time_profiler_smoke_test() {
|
||||
let chan = time::Profiler::create(&None, None);
|
||||
let chan = time::Profiler::create(&None, None, false);
|
||||
assert!(true, "Can create the profiler thread");
|
||||
|
||||
let (ipcchan, _ipcport) = ipc::channel().unwrap();
|
||||
|
@ -45,7 +45,7 @@ fn time_profiler_stats_test() {
|
|||
|
||||
#[test]
|
||||
fn channel_profiler_test() {
|
||||
let chan = time::Profiler::create(&Some(OutputOptions::Stdout(5.0)), None);
|
||||
let chan = time::Profiler::create(&Some(OutputOptions::Stdout(5.0)), None, false);
|
||||
let (profiled_sender, profiled_receiver) = ProfiledIpc::channel(chan.clone()).unwrap();
|
||||
thread::spawn(move || {
|
||||
thread::sleep(Duration::from_secs(2));
|
||||
|
@ -70,7 +70,7 @@ fn channel_profiler_test() {
|
|||
|
||||
#[test]
|
||||
fn bytes_channel_profiler_test() {
|
||||
let chan = time::Profiler::create(&Some(OutputOptions::Stdout(5.0)), None);
|
||||
let chan = time::Profiler::create(&Some(OutputOptions::Stdout(5.0)), None, false);
|
||||
let (profiled_sender, profiled_receiver) = ProfiledIpc::bytes_channel(chan.clone()).unwrap();
|
||||
thread::spawn(move || {
|
||||
thread::sleep(Duration::from_secs(2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue