mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* Let strobe launch an isolated Hex Scope the Windows instance event to a custom data root, read ~/.config/hex from USERPROFILE on Windows, add HEX_DISABLE_UPDATES, name the UI and remaining long-lived threads, and add the strobe profile and feature, strobe.json, perf benches, and docs/perf.md. * strobe.json: keep the copy out of the Hugging Face cache * strobe.json: keep seeded history * Windows instance event: keep the default event for the default root Naming the default data root in HEX_APPLICATION_SUPPORT_DIR must not let two apps share it.
22 lines
654 B
TypeScript
22 lines
654 B
TypeScript
// Cold launch to the first painted Settings window (docs/perf.md): process
|
|
// start, fonts, GPU device and pipelines, and the first frames.
|
|
import { bench, native } from "@hona/strobe"
|
|
|
|
export default bench({
|
|
targets: {
|
|
window: native("hex", { bridge: false }),
|
|
},
|
|
cases: {
|
|
"cold-launch": {
|
|
primary: "launch.ready",
|
|
metrics: ["launch.settled", "launch.api", "cpu.work", "memory.app.private"],
|
|
launch: {
|
|
until: { window: "painted" },
|
|
milestones: {
|
|
// The local API starts on its own thread while the window opens.
|
|
api: { match: "local API started" },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|