File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 319
319
} ;
320
320
inherit ( docker ) cardano-db-sync-docker cardano-smash-server-docker ;
321
321
322
+ profiled =
323
+ let
324
+ projectProfiled = ( project . appendModule {
325
+ modules = [ {
326
+ enableLibraryProfiling = true ;
327
+ enableProfiling = true ;
328
+ packages . cardano-db-sync . configureFlags =
329
+ [ "--ghc-option=-fprof-auto" ] ;
330
+ packages . cardano-smash-server . configureFlags =
331
+ [ "--ghc-option=-fprof-auto" ] ;
332
+
333
+ } ] ;
334
+ } ) ;
335
+ in {
336
+ inherit ( projectProfiled . exes ) cardano-db-sync cardano-smash-server ;
337
+ } ;
338
+
322
339
# TODO: macOS builders are resource-constrained and cannot run the detabase
323
340
# integration tests. Add these back when we get beefier builders.
324
341
nonRequiredMacOSPaths = [
347
364
} // lib . optionalAttrs ( system == "x86_64-darwin" ) {
348
365
inherit cardano-db-sync-macos ;
349
366
} // {
350
- inherit cardano-smash-server-no-basic-auth ;
367
+ inherit cardano-smash-server-no-basic-auth profiled ;
368
+
351
369
checks = staticChecks ;
352
370
} ;
353
371
364
382
} // lib . optionalAttrs ( system == "x86_64-darwin" ) {
365
383
inherit cardano-db-sync-macos ;
366
384
} // {
367
- inherit cardano-smash-server-no-basic-auth ;
385
+ inherit cardano-smash-server-no-basic-auth profiled ;
368
386
} ;
369
387
} ) ) // {
370
388
nixosModules = {
You can’t perform that action at this time.
0 commit comments