new: new -script allows to run JS code to instrument session

This commit is contained in:
Simone Margaritelli 2021-04-04 15:15:32 +02:00
commit 40727063ec
13 changed files with 610 additions and 312 deletions

View file

@ -17,6 +17,7 @@ type Options struct {
CpuProfile *string
MemProfile *string
CapletsPath *string
Script *string
}
func ParseOptions() (Options, error) {
@ -35,6 +36,7 @@ func ParseOptions() (Options, error) {
CpuProfile: flag.String("cpu-profile", "", "Write cpu profile `file`."),
MemProfile: flag.String("mem-profile", "", "Write memory profile to `file`."),
CapletsPath: flag.String("caplets-path", "", "Specify an alternative base path for caplets."),
Script: flag.String("script", "", "Load a session script."),
}
flag.Parse()