mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement a PerformanceActor.
This is necessary for the devtools "Start Recording Performance" button to send a message. (This message is not yet supported, so it leads to 'unexpected message type "startRecording" found for actor "performance4"'.)
This commit is contained in:
parent
6a52ec9484
commit
238beec038
3 changed files with 83 additions and 2 deletions
|
@ -63,6 +63,7 @@ pub struct TabActorMsg {
|
|||
inspectorActor: String,
|
||||
timelineActor: String,
|
||||
profilerActor: String,
|
||||
performanceActor: String,
|
||||
}
|
||||
|
||||
pub struct TabActor {
|
||||
|
@ -73,6 +74,7 @@ pub struct TabActor {
|
|||
pub inspector: String,
|
||||
pub timeline: String,
|
||||
pub profiler: String,
|
||||
pub performance: String,
|
||||
}
|
||||
|
||||
impl Actor for TabActor {
|
||||
|
@ -150,6 +152,7 @@ impl TabActor {
|
|||
inspectorActor: self.inspector.clone(),
|
||||
timelineActor: self.timeline.clone(),
|
||||
profilerActor: self.profiler.clone(),
|
||||
performanceActor: self.performance.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue