Commit 0975cd4
committed
refactor: clarify computation of jailer_cpu_time_us
The components that go into the calculation are
1. Exclude thing before calling Env::new() (including potential time
spent in a parent of the jailer itself that ended up exec()-ing
2. The time up until a potential fork() for daemonization
3. The time spent in each temporary process during triple-fork()ing
Signed-off-by: Patrick Roy <[email protected]>1 parent c96a1c9 commit 0975cd4
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| 648 | + | |
| 649 | + | |
648 | 650 | | |
649 | 651 | | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 652 | | |
654 | 653 | | |
655 | 654 | | |
| |||
672 | 671 | | |
673 | 672 | | |
674 | 673 | | |
675 | | - | |
| 674 | + | |
676 | 675 | | |
677 | 676 | | |
678 | 677 | | |
| |||
696 | 695 | | |
697 | 696 | | |
698 | 697 | | |
699 | | - | |
700 | 698 | | |
701 | | - | |
702 | | - | |
703 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
704 | 702 | | |
705 | 703 | | |
706 | 704 | | |
| |||
0 commit comments