Debian Codegraph @

fixtures/memory/main.go

raw symbols SCIP
1 package main
2
3 import (
4 "flag"
5 "time"
6 )
7
8 var count = flag.Int("count", 0, "how many bytes to allocate")
9
10 func main() {
11 flag.Parse()
12 stuff := make([]int8, *count)
13 for i := 0; i < *count; i++ {
14 stuff[i] = int8(i % 10)
15 }
16
17 for {
18 time.Sleep(time.Second * 60)
19 }
20 }