mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Dump initial prototype of devtools server into the build. Expect lies if you try to use it for anything real.
This commit is contained in:
parent
5e5f77a354
commit
f0f7e98dfa
19 changed files with 670 additions and 4 deletions
|
@ -15,6 +15,7 @@ extern crate log;
|
|||
extern crate debug;
|
||||
|
||||
extern crate compositing;
|
||||
extern crate devtools;
|
||||
extern crate rustuv;
|
||||
extern crate servo_net = "net";
|
||||
extern crate servo_msg = "msg";
|
||||
|
@ -94,6 +95,11 @@ pub fn run(opts: opts::Opts) {
|
|||
let (compositor_port, compositor_chan) = CompositorChan::new();
|
||||
let time_profiler_chan = TimeProfiler::create(opts.time_profiler_period);
|
||||
let memory_profiler_chan = MemoryProfiler::create(opts.memory_profiler_period);
|
||||
let devtools_chan = if opts.devtools_server {
|
||||
Some(devtools::start_server())
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
let opts_clone = opts.clone();
|
||||
let time_profiler_chan_clone = time_profiler_chan.clone();
|
||||
|
@ -121,7 +127,8 @@ pub fn run(opts: opts::Opts) {
|
|||
resource_task,
|
||||
image_cache_task,
|
||||
font_cache_task,
|
||||
time_profiler_chan_clone);
|
||||
time_profiler_chan_clone,
|
||||
devtools_chan);
|
||||
|
||||
// Send the URL command to the constellation.
|
||||
let cwd = os::getcwd();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue