servo/components/profile
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
..
Cargo.toml Remove support for heartbeats profiling 2020-06-04 22:53:56 +02:00
lib.rs Remove support for heartbeats profiling 2020-06-04 22:53:56 +02:00
mem.rs feat: shorten thread names 2021-07-19 00:57:48 +09:00
time.rs feat: shorten thread names 2021-07-19 00:57:48 +09:00
trace-dump-epilogue-1.html Add a method for dumping self-contained HTML timeline profiles 2016-04-27 18:35:17 -07:00
trace-dump-epilogue-2.html Add a method for dumping self-contained HTML timeline profiles 2016-04-27 18:35:17 -07:00
trace-dump-prologue-1.html Add a method for dumping self-contained HTML timeline profiles 2016-04-27 18:35:17 -07:00
trace-dump-prologue-2.html Add a method for dumping self-contained HTML timeline profiles 2016-04-27 18:35:17 -07:00
trace-dump.css Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
trace-dump.js Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
trace_dump.rs Remove support for energy profiling 2020-06-04 16:39:08 +02:00