mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
This should help clarify the difference between servo the library / engine and servoshell the browser (demo). Other changes: - Removed etc/servo.sb ( [apple sandbox profile format](https://angelica.gitbook.io/hacktricks/macos-hardening/macos-security-and-privilege-escalation/macos-security-protections/macos-sandbox#sandbox-profiles)) since it is not needed anymore. See [this comment](https://github.com/servo/servo/pull/42958#discussion_r2876253489) for more details. Testing: This is a very invasive change, and there are bound to be scripts / places I have overlooked. Searching for usages of `servo` is very hard, since it's also the name of the library. Try run: https://github.com/servo/servo/actions/runs/22637676818 --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
The power and performance measurement for Servo parallel browser
This script uses PowerMetrics to measure power usage of Servo on OS X
Running
cd servo/tests/power
sudo python PowerMeasure.py
You can define the maximum number of threads in layout level, rendering by cpu, benchmarks and output directory with these command line arguments:
-b BENCHMARK, --benchmark BENCHMARKsets the benchmark, for example '-B "perf-rainbow.html"'-c CPU, --CPU CPUrenders with CPU instead of GPU-l LAYOUTTHREADS, --LayoutThreads LAYOUTTHREADSsets the maximum number of threads for layout, for example " -L 5"-o OUTPUT, --Output OUTPUTspecifyes the output directory
Example
This command will measure power and performance for 1 to 5 threads in layout with CPU rendering when we are running the about-mozilla.html benchmark
sudo python PowerMeasure.py -L 5 -c cpu -b "/Desktop/servo/src/test/html/about-mozilla.html" -o /Desktop/Results/