Commit 5d2da19
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 a1d7820 commit 5d2da19
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| 645 | + | |
| 646 | + | |
645 | 647 | | |
646 | 648 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | 649 | | |
651 | 650 | | |
652 | 651 | | |
| |||
669 | 668 | | |
670 | 669 | | |
671 | 670 | | |
672 | | - | |
| 671 | + | |
673 | 672 | | |
674 | 673 | | |
675 | 674 | | |
| |||
693 | 692 | | |
694 | 693 | | |
695 | 694 | | |
696 | | - | |
697 | 695 | | |
698 | | - | |
699 | | - | |
700 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
701 | 699 | | |
702 | 700 | | |
703 | 701 | | |
| |||
0 commit comments