new: cpuprofile and memprofile options for easy profiling

This commit is contained in:
evilsocket 2018-02-11 18:41:49 +01:00
commit 47230567ba
4 changed files with 34 additions and 1 deletions

View file

@ -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)
}