33
33
#include "object-store.h"
34
34
#include "dir.h"
35
35
#include "midx.h"
36
- #include "trace2.h"
37
36
38
37
#define IN_PACK (obj ) oe_in_pack(&to_pack, obj)
39
38
#define SIZE (obj ) oe_size(&to_pack, obj)
@@ -3479,7 +3478,6 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
3479
3478
}
3480
3479
}
3481
3480
3482
- trace2_region_enter ("pack-objects" , "enumerate-objects" , the_repository );
3483
3481
prepare_packing_data (& to_pack );
3484
3482
3485
3483
if (progress )
@@ -3494,20 +3492,12 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
3494
3492
if (include_tag && nr_result )
3495
3493
for_each_ref (add_ref_tag , NULL );
3496
3494
stop_progress (& progress_state );
3497
- trace2_region_leave ("pack-objects" , "enumerate-objects" , the_repository );
3498
3495
3499
3496
if (non_empty && !nr_result )
3500
3497
return 0 ;
3501
- if (nr_result ) {
3502
- trace2_region_enter ("pack-objects" , "prepare-pack" , the_repository );
3498
+ if (nr_result )
3503
3499
prepare_pack (window , depth );
3504
- trace2_region_leave ("pack-objects" , "prepare-pack" , the_repository );
3505
- }
3506
-
3507
- trace2_region_enter ("pack-objects" , "write-pack-file" , the_repository );
3508
3500
write_pack_file ();
3509
- trace2_region_leave ("pack-objects" , "write-pack-file" , the_repository );
3510
-
3511
3501
if (progress )
3512
3502
fprintf_ln (stderr ,
3513
3503
_ ("Total %" PRIu32 " (delta %" PRIu32 "),"
0 commit comments