Skip to content

Commit

Permalink
write stats about time taken to writeNS
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Huber <[email protected]>
  • Loading branch information
maxhbr committed Apr 23, 2024
1 parent 8dbe831 commit e7a80e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ writeSvgByNS outDir selectedNS = do
_ -> False
)
allLicenseNames
if True
then do
numCaps <- lift $ getNumCapabilities
graph <- MTL.get
lift $ withTaskGroup (max 1 (numCaps - 3)) $ \group -> do
_ <- mapConcurrently group (runLicenseGraphM' graph . writeFilesByName outDir) (V.toList filteredLicenses)
return ()
else V.mapM_ (writeFilesByName outDir) filteredLicenses
timedLGM ("writing " ++ show (V.length filteredLicenses) ++ " licenses of NS=" ++ T.unpack selectedNS) $ do
if True
then do
numCaps <- lift $ getNumCapabilities
graph <- MTL.get
lift $ withTaskGroup (max 1 (numCaps - 3)) $ \group -> do
_ <- mapConcurrently group (runLicenseGraphM' graph . writeFilesByName outDir) (V.toList filteredLicenses)
return ()
else V.mapM_ (writeFilesByName outDir) filteredLicenses

curation :: Vector CurationItem
curation =
Expand Down
2 changes: 1 addition & 1 deletion data/fosslight/dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ startContainer() {
dumpTable() {
tablename="$1"

dumpCMD="exec mysqldump "
dumpCMD="exec mariadb-dump "
dumpARGS="-uroot -pmy-secret-pw"
dumpARGS="$dumpARGS --skip-create-options"
dumpARGS="$dumpARGS --compatible=ansi"
Expand Down

0 comments on commit e7a80e5

Please sign in to comment.