Samson
aad2dccc9c
Strict import formatting (grouping and granularity) ( #30325 )
...
* strict imports formatting
* Reformat all imports
2023-09-11 19:16:54 +00:00
yvt
41b3726271
feat: shorten thread names
...
The Linux kernel imposes a 15-byte limit on thread names[1]. This means
information that does not fit in this limit, e.g., the pipeline ID of
layout and script threads, is lost in a debugger and profiler (see the
first column of the table below).
This commit shortens the thread names used in Servo to maximize the
amount of information conveyed. It also rectifies some inconsistencies
in the names.
| Before | After |
|-------------------|-------------------|
| `BluetoothThread` | `Bluetooth` |
| `CanvasThread` | `Canvas` |
| `display alert d` | `AlertDialog` |
| `FontCacheThread` | `FontCache` |
| `GLPlayerThread` | `GLPlayer` |
| `HTML Parser` | `Parse:www.examp` |
| `LayoutThread Pi` | `Layout(1,1)` |
| `Memory profiler` | `MemoryProfiler` |
| `Memory profiler` | `MemoryProfTimer` |
| `OfflineAudioCon` | `OfflineACResolv` |
| `PullTimelineMar` | `PullTimelineDat` |
| `ScriptThread Pi` | `Script(1,1)` |
| `WebWorker for h` | `WW:www.example.` |
| `ServiceWorker f` | `SW:www.example.` |
| `ServiceWorkerMa` | `SvcWorkerManage` |
| `Time profiler t` | `TimeProfTimer` |
| `Time profiler` | `TimeProfiler` |
| `WebGL thread` | `WebGL` |
| `Choose a device` | `DevicePicker` |
| `Pick a file` | `FilePicker` |
| `Pick files` | `FilePicker` |
[1]: https://stackoverflow.com/questions/5026531/thread-name-longer-than-15-chars
2021-07-19 00:57:48 +09:00
Josh Matthews
f4915ef6c9
devtools: Track multiple clients better, and cleanup streams when a client isn't reachable.
2020-08-06 09:55:01 -04:00
Josh Matthews
0b619bf920
devtools: Don't panic when sending to a disconnected client fails.
2020-08-05 14:55:48 -04:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
kingdido999
ad822b74c7
Format components devtools and devtools_traits #21373
2018-09-02 20:29:47 +08:00
lucantrop
d6568e608b
removed instances of -> () in existing code
2017-03-13 17:38:33 +01:00
Anthony Ramine
fe3f4ff0c2
Update serde to 0.9 ( fixes #15325 )
2017-02-18 21:09:46 +01:00
Alan Jeffrey
9be4fd56ce
Removed util.
2016-12-14 18:04:37 -06:00
Alan Jeffrey
a6d83a38e5
Setting a devtools timeline marker may fail, due to pipeline lookup failure.
2016-10-12 12:56:23 -05:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Anthony Ramine
7ad51dcd7a
Update serde to 0.8 ( fixes #12659 )
2016-08-12 18:37:27 +02:00
Josh Matthews
3cb8af20c2
Remove empty lines following braces.
2016-05-27 13:32:05 -04:00
Anthony Ramine
406273c641
Use serde in devtools
2016-03-31 11:07:18 +02:00
Florian Strübe
6502820ab3
Removed unused imports from devtools crate
2016-01-17 13:18:15 +01:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
James Sanders
3659218c59
Use thread::sleep instead of deprecated sleep_ms
...
Similarly, change one instance of `thread::park_timeout_ms`.
Fixes #8694
2015-11-29 13:41:04 -07:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Brandon Fairchild
de3547e401
Fix reported test-tidy errors for unmerged import blocks
...
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
Mathieu Rheaume
7320433cca
Remove 'get_*' on getters as per RFC 0344 on various components
2015-09-12 20:14:01 -04:00
Ms2ger
1257a33394
Stop calling to_string() in devtools.
2015-09-02 19:51:22 +02:00
Ms2ger
cf55d3191d
Send the start and end half of a TimelineMarker to the devtools PullTimelineMarkers thread together.
2015-08-28 20:48:07 +02:00
Ms2ger
18b9532b25
Remove Emitter::markers.
...
The vector is filled in and immediately emptied again. It is clearer to
keep the vector in the caller instead.
2015-08-26 16:19:01 +02:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
João Oliveira
0038580abf
Replace uses of for foo in bar.iter()
and for foo in bar.iter_mut()
...
closes #7197
2015-08-15 02:27:39 +01:00
Fabrice Desré
c7b48240b0
Actor::handle_message should return an enum instad of a boolean #7110 r=jdm
2015-08-13 18:14:34 -07:00
Josh Matthews
56475676e4
Warning police.
2015-08-12 01:07:50 -04:00
Patrick Walton
164e10202c
devtools: Convert the developer tools to run over IPC.
2015-07-27 09:10:01 -07:00
Corey Farwell
435e551753
Remove get_
prefix on getters
...
Part of #6224
I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script`
2015-06-02 08:54:44 -04:00
Guro Bokum
be2cb665de
Start using on_refresh_driver_tick #5681
...
Final
2015-05-06 02:08:39 +07:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Guro Bokum
491851610e
Send high resolution millisecond timestamps in timeline markers #5665
2015-04-15 19:46:00 +07:00
Adenilson Cavalcanti
a233cb5ef9
Using unwrap() as suggested in review.
2015-04-13 14:45:14 -07:00
Adenilson Cavalcanti
d2b7cbd4ef
Squashing a few compiler warnings.
2015-04-13 14:25:42 -07:00
Guro Bokum
97714ec5ed
Firefox timeline integration #4957
2015-04-13 21:08:07 +07:00