@@ -394,6 +394,7 @@ func resetProfileDirForFlakes(profileDir string) (err error) {
394
394
}
395
395
396
396
func (d * Devbox ) installPackages (ctx context.Context , mode installMode ) error {
397
+ defer debug .FunctionTimer ().End ()
397
398
// Create plugin directories first because packages might need them
398
399
for _ , pluginConfig := range d .Config ().IncludedPluginConfigs () {
399
400
if err := d .PluginManager ().CreateFilesForConfig (pluginConfig ); err != nil {
@@ -430,6 +431,7 @@ func (d *Devbox) InstallRunXPackages(ctx context.Context) error {
430
431
// packages will be available in the nix store when computing the devbox environment
431
432
// and installing in the nix profile (even if offline).
432
433
func (d * Devbox ) installNixPackagesToStore (ctx context.Context , mode installMode ) error {
434
+ defer debug .FunctionTimer ().End ()
433
435
packages , err := d .packagesToInstallInStore (ctx , mode )
434
436
if err != nil || len (packages ) == 0 {
435
437
return err
@@ -526,6 +528,7 @@ func (d *Devbox) installNixPackagesToStore(ctx context.Context, mode installMode
526
528
}
527
529
528
530
func (d * Devbox ) packagesToInstallInStore (ctx context.Context , mode installMode ) ([]* devpkg.Package , error ) {
531
+ defer debug .FunctionTimer ().End ()
529
532
// First, get and prepare all the packages that must be installed in this project
530
533
// and remove non-nix packages from the list
531
534
packages := lo .Filter (d .InstallablePackages (), devpkg .IsNix )
0 commit comments