mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: cpuprofile and memprofile options for easy profiling
This commit is contained in:
parent
e9dac1a4cf
commit
47230567ba
4 changed files with 34 additions and 1 deletions
3
main.go
3
main.go
|
@ -44,7 +44,6 @@ func main() {
|
|||
if err = sess.Start(); err != nil {
|
||||
log.Fatal("%s", err)
|
||||
}
|
||||
defer sess.Close()
|
||||
|
||||
// Some modules are enabled by default in order
|
||||
// to make the interactive session useful.
|
||||
|
@ -94,6 +93,8 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
sess.Close()
|
||||
|
||||
// Windows requires this otherwise the app never exits ...
|
||||
os.Exit(0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue