Repository navigation
Commit 515d169
#83 instrumentation: low-overhead by default, an A/B toggle for the fopen theory
The existing ECCE_DEBUG_MATERIAL probes did fopen()/fclose() on every
atom of every frame -- real file-open/close syscalls in the render hot
path, for as long as the app runs. That is enough of a timing
perturbation that it may have been avoiding the very race #83 is
chasing, rather than proving the material state clean: two live tries
with that logging on reproduced no tint, after one had just reproduced
it with logging off.
Default behaviour now opens the log once and keeps the handle,
flushing after each write instead of closing. Also removed the
theAtom < 4 cap on the per-sphere probe, which silently never covered
a 6-atom molecule's oxygen or its last hydrogen -- exactly the atoms
the reported tint's colour measurements were taken from.
ECCE_DEBUG_MATERIAL_HEAVY=1 restores the exact old per-call cost (one
open+close syscall pair per log statement, same granularity the
original probes had) so the fopen-overhead theory can be A/B tested
directly instead of argued about. Live results so far (small sample,
not conclusive): heavy logging has not reproduced the tint in 2
attempts; light logging reproduced it once in 3. Suggestive, not
proven -- worth more attempts before trusting either way.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E4HPD1xaxKpyh9gZ6hsBP21 parent 3557985 commit 515d169
2 files changed
Lines changed: 117 additions & 68 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
691 | 699 | | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
704 | 730 | | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
723 | 734 | | |
| 735 | + | |
724 | 736 | | |
725 | 737 | | |
726 | 738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
138 | 172 | | |
139 | 173 | | |
140 | 174 | | |
| |||
326 | 360 | | |
327 | 361 | | |
328 | 362 | | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
338 | 370 | | |
339 | 371 | | |
340 | 372 | | |
| |||
352 | 384 | | |
353 | 385 | | |
354 | 386 | | |
355 | | - | |
356 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
357 | 395 | | |
358 | 396 | | |
359 | 397 | | |
| |||
382 | 420 | | |
383 | 421 | | |
384 | 422 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
396 | 430 | | |
| 431 | + | |
397 | 432 | | |
398 | 433 | | |
399 | 434 | | |
| |||
762 | 797 | | |
763 | 798 | | |
764 | 799 | | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
781 | 818 | | |
782 | 819 | | |
783 | 820 | | |
| |||
0 commit comments