Limit size of expensiveInvocs

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-06-26 21:56:34 +02:00
parent e65215f1b5
commit db5929f4a5
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -299,6 +299,7 @@ var importAnalyzeCmd = &cli.Command{
if len(expensiveInvocs) != 0 {
leastExpensiveInvoc = expensiveInvocs[len(expensiveInvocs)-1].Invoc.Duration
}
expensiveInvocs = expensiveInvocs[:30]
}
}()
}