1k-startup-profile

Installation
SKILL.md

Startup Profile — deep per-module + HBC + segment timing

Single env-var flag ONEKEY_STARTUP_PROFILE=1 turns on three layers of measurement at once. When OFF (the default), every measurement path is a single boolean check — zero observable overhead in production.


What gets measured

Layer Log tag Content Source
1. JS modules [StartupProfile.js] Top 200 modules by self-time (total minus time spent in nested requires) + moduleId → path apps/mobile/src/startupProfile/index.ts
2. HBC files [StartupProfile.hbc] Main bundle I/O ms + size in bytes; parse+eval is derivable from existing ios.main_entry.evaluated / RN timing iOS AppDelegate.swift, Android MainApplication.java
3. Segments [StartupProfile.seg] Per-.seg.hbc total duration + id + key + relative path apps/mobile/src/splitBundle/installProdBundleLoader.ts

How to enable

Installs
6
GitHub Stars
2.4K
First Seen
Apr 22, 2026
1k-startup-profile — onekeyhq/app-monorepo