3333#include "object-store.h"
3434#include "dir.h"
3535#include "midx.h"
36- #include "trace2.h"
3736
3837#define IN_PACK (obj ) oe_in_pack(&to_pack, obj)
3938#define SIZE (obj ) oe_size(&to_pack, obj)
@@ -3479,7 +3478,6 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
34793478 }
34803479 }
34813480
3482- trace2_region_enter ("pack-objects" , "enumerate-objects" , the_repository );
34833481 prepare_packing_data (& to_pack );
34843482
34853483 if (progress )
@@ -3494,20 +3492,12 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
34943492 if (include_tag && nr_result )
34953493 for_each_ref (add_ref_tag , NULL );
34963494 stop_progress (& progress_state );
3497- trace2_region_leave ("pack-objects" , "enumerate-objects" , the_repository );
34983495
34993496 if (non_empty && !nr_result )
35003497 return 0 ;
3501- if (nr_result ) {
3502- trace2_region_enter ("pack-objects" , "prepare-pack" , the_repository );
3498+ if (nr_result )
35033499 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 );
35083500 write_pack_file ();
3509- trace2_region_leave ("pack-objects" , "write-pack-file" , the_repository );
3510-
35113501 if (progress )
35123502 fprintf_ln (stderr ,
35133503 _ ("Total %" PRIu32 " (delta %" PRIu32 "),"
0 commit comments