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.31
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 /
runtime /
pprof /
[ HOME SHELL ]
Name
Size
Permission
Action
internal
[ DIR ]
drwxr-xr-x
testdata
[ DIR ]
drwxr-xr-x
elf.go
2.79
KB
-rw-r--r--
label.go
2.55
KB
-rw-r--r--
label_test.go
2.53
KB
-rw-r--r--
map.go
1.94
KB
-rw-r--r--
mprof_test.go
5.35
KB
-rw-r--r--
pprof.go
27.24
KB
-rw-r--r--
pprof_test.go
34.46
KB
-rw-r--r--
proto.go
22.63
KB
-rw-r--r--
proto_test.go
16.25
KB
-rw-r--r--
protobuf.go
2.51
KB
-rw-r--r--
protomem.go
2.91
KB
-rw-r--r--
protomem_test.go
2.54
KB
-rw-r--r--
runtime.go
1.5
KB
-rw-r--r--
runtime_test.go
3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : label.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 pprof import ( "context" ) type label struct { key string value string } // LabelSet is a set of labels. type LabelSet struct { list []label } // labelContextKey is the type of contextKeys used for profiler labels. type labelContextKey struct{} func labelValue(ctx context.Context) labelMap { labels, _ := ctx.Value(labelContextKey{}).(*labelMap) if labels == nil { return labelMap(nil) } return *labels } // labelMap is the representation of the label set held in the context type. // This is an initial implementation, but it will be replaced with something // that admits incremental immutable modification more efficiently. type labelMap map[string]string // WithLabels returns a new context.Context with the given labels added. // A label overwrites a prior label with the same key. func WithLabels(ctx context.Context, labels LabelSet) context.Context { childLabels := make(labelMap) parentLabels := labelValue(ctx) // TODO(matloob): replace the map implementation with something // more efficient so creating a child context WithLabels doesn't need // to clone the map. for k, v := range parentLabels { childLabels[k] = v } for _, label := range labels.list { childLabels[label.key] = label.value } return context.WithValue(ctx, labelContextKey{}, &childLabels) } // Labels takes an even number of strings representing key-value pairs // and makes a LabelSet containing them. // A label overwrites a prior label with the same key. // Currently only CPU profile utilizes labels information. // See https://golang.org/issue/23458 for details. func Labels(args ...string) LabelSet { if len(args)%2 != 0 { panic("uneven number of arguments to pprof.Labels") } list := make([]label, 0, len(args)/2) for i := 0; i+1 < len(args); i += 2 { list = append(list, label{key: args[i], value: args[i+1]}) } return LabelSet{list: list} } // Label returns the value of the label with the given key on ctx, and a boolean indicating // whether that label exists. func Label(ctx context.Context, key string) (string, bool) { ctxLabels := labelValue(ctx) v, ok := ctxLabels[key] return v, ok } // ForLabels invokes f with each label set on the context. // The function f should return true to continue iteration or false to stop iteration early. func ForLabels(ctx context.Context, f func(key, value string) bool) { ctxLabels := labelValue(ctx) for k, v := range ctxLabels { if !f(k, v) { break } } }
Close