Skip to content

feat(log): timestamped --verbose output + ScopedTimer for first-init steps (WS5)#153

Merged
Sunrisepeak merged 1 commit into
mainfrom
feat/first-init-verbose-timing
Jun 23, 2026
Merged

feat(log): timestamped --verbose output + ScopedTimer for first-init steps (WS5)#153
Sunrisepeak merged 1 commit into
mainfrom
feat/first-init-verbose-timing

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Diagnose mcpp first-run long hangs.

  • Every --verbose line now carries a wall-clock timestamp: [VERBOSE <YYYY-MM-DD HH:MM:SS.mmm>] tag: msg.
  • One-time bootstrap steps (sandbox layout / patchelf / ninja) wrapped in a ScopedTimer → logs <step>: start and <step>: done (Δ=<ms>ms).
  • Always written to ~/.mcpp/log/mcpp.log (already timestamped) + stderr under --verbose.

Verified: [VERBOSE 2026-06-23 21:51:43.673] fetcher: resolve: .... ScopedTimers fire on fresh ~/.mcpp (the first-run scenario users hit on Termux). Plan: .agents/docs/2026-06-24-offline-first-index-and-mcpp-index-publish.md §4.5.

Diagnose first-run long hangs: every --verbose line now carries a wall-clock
timestamp ([VERBOSE <ts>]), and the one-time bootstrap steps (sandbox layout,
patchelf, ninja) are wrapped in a ScopedTimer logging 'start' + 'done (Δ=<ms>ms)'.
Logged to ~/.mcpp/log/mcpp.log always (already timestamped) + stderr under
--verbose, so a slow step is attributable after the fact. Toolchain install
already logs verbose (now timestamped). WS5 of the index/offline-first plan.
@Sunrisepeak Sunrisepeak merged commit 4da1c22 into main Jun 23, 2026
4 checks passed
@Sunrisepeak Sunrisepeak deleted the feat/first-init-verbose-timing branch June 23, 2026 23:06
Sunrisepeak added a commit that referenced this pull request Jun 23, 2026
Ships the WS3/WS5/WS6 + manifest work merged for this cycle:
- offline-first miss-triggered index refresh + `mcpp index status` (#155)
- first-init timestamped --verbose timing logs (#153)
- install.sh linux-aarch64 + GitHub→GitCode(CN) mirror fallback (#154)
- TOML-native namespaced self-host dep (#156)

Bumps mcpp.toml + MCPP_VERSION together (test 01 ties --version to the
manifest) and adds the 0.0.61 CHANGELOG entry. The .xlings.json bootstrap
pin stays at 0.0.60 until 0.0.61 is published+mirrored+indexed (CI bootstraps
from the published version), then bumps in a follow-up.
Sunrisepeak added a commit that referenced this pull request Jun 23, 2026
Ships the WS3/WS5/WS6 + manifest work merged for this cycle:
- offline-first miss-triggered index refresh + `mcpp index status` (#155)
- first-init timestamped --verbose timing logs (#153)
- install.sh linux-aarch64 + GitHub→GitCode(CN) mirror fallback (#154)
- TOML-native namespaced self-host dep (#156)

Bumps mcpp.toml + MCPP_VERSION together (test 01 ties --version to the
manifest) and adds the 0.0.61 CHANGELOG entry. The .xlings.json bootstrap
pin stays at 0.0.60 until 0.0.61 is published+mirrored+indexed (CI bootstraps
from the published version), then bumps in a follow-up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant