File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -432,13 +432,14 @@ def copy_str_or_file(src, dst):
432
432
command = command + "--after-remove %s " % OnlPackageAfterRemoveScript (self .pkg ['init' ], dir = workdir ).name
433
433
434
434
if self .pkg .get ('asr' , True ):
435
- # Generate the ASR documentation for this package.
436
- sys .path .append ("%s/sm/infra/tools" % os .getenv ('ONL' ))
437
- import asr
438
- asro = asr .AimSyslogReference ()
439
- asro .extract (workdir )
440
- asro .format (os .path .join (docpath , asr .AimSyslogReference .ASR_NAME ), 'json' )
441
-
435
+ with onlu .Profiler () as profiler :
436
+ # Generate the ASR documentation for this package.
437
+ sys .path .append ("%s/sm/infra/tools" % os .getenv ('ONL' ))
438
+ import asr
439
+ asro = asr .AimSyslogReference ()
440
+ asro .extract (workdir )
441
+ asro .format (os .path .join (docpath , asr .AimSyslogReference .ASR_NAME ), 'json' )
442
+ profiler .log ("ASR generation for %(name)s" % self .pkg )
442
443
############################################################
443
444
444
445
if logger .level < logging .INFO :
@@ -1234,14 +1235,15 @@ def defaultPm():
1234
1235
if ops .list_all :
1235
1236
print pm
1236
1237
1238
+ if ops .pmake :
1239
+ pm .pmake ()
1240
+
1241
+
1237
1242
pm .filter (subdir = ops .subdir , arches = ops .arches )
1238
1243
1239
1244
if ops .list :
1240
1245
print pm
1241
1246
1242
- if ops .pmake :
1243
- pm .pmake ()
1244
-
1245
1247
if ops .pkg_info :
1246
1248
print pm .pkg_info ()
1247
1249
You can’t perform that action at this time.
0 commit comments