Marc CARRE
ed4e8aa374
Update import statements to use sirupsen/logrus.
...
Commands run:
```
$ git grep -l Sirupsen | grep -v vendor | xargs sed -i 's:github.com/Sirupsen/logrus:github.com/sirupsen/logrus:g'
$ gofmt -s -w app
$ gofmt -s -w common
$ gofmt -s -w probe
$ gofmt -s -w prog
$ gofmt -s -w tools
```
N.B.: following this commit, build fails with:
```
vendor/github.com/docker/docker/pkg/archive/archive.go:20:2: cannot find package "github.com/Sirupsen/logrus" in any of:
/go/src/github.com/weaveworks/scope/vendor/github.com/Sirupsen/logrus (vendor tree)
/usr/local/go/src/github.com/Sirupsen/logrus (from $GOROOT)
/go/src/github.com/Sirupsen/logrus (from $GOPATH)
```
Resolution in subsequent commit.
2017-10-20 11:47:28 +01:00
Damien Lespiau
466927ce68
lint: Fix 2 sites failing a recently introduced golint check
...
golint has gained a new check and we don't freeze the golint version so CI was
failing on unrelated PRs:
app/multitenant/consul_client.go:69:2: redundant if ...; err != nil check, just return error instead.
report/marshal.go:188:2: redundant if ...; err != nil check, just return error instead.
Fix those!
2017-09-26 12:15:09 +01:00
Matthias Radestock
fa0f4a4d59
add copyreport utility
...
useful for codec and report structure experiments
2017-05-26 15:33:15 +01:00
Matthias Radestock
eb8695965a
refactor: move report file reading
2017-05-26 15:30:17 +01:00
Bryan Boreham
36ff5ab71a
Write psMap out directly
...
rather than going via intermediate data structure
2017-04-25 10:38:56 +00:00
Bryan Boreham
b3f53a7a81
Call CodecDecodeSelf() instead of Decode()
...
This avoids a runtime type lookup, so goes a little faster.
Also having less recursion makes it easier to interpret profiles.
2017-03-23 12:25:12 +00:00
Bryan Boreham
b085c80ef3
Decode via byte slice for memcache and file read
...
This is more efficient, since the decoder can read field names in-place.
It also appears to be absolutely faster.
2017-03-14 14:54:17 +00:00
Jonathan Lange
2bfd6d7eb7
Parametrize compression level
2016-07-15 11:24:36 +01:00
Jonathan Lange
23faf583b3
Drop gob support
2016-06-21 11:56:56 +01:00
Jonathan Lange
8bd8f883a1
Restore debugging logic
2016-06-21 11:08:55 +01:00
Jonathan Lange
e5417342ba
Review comments
2016-06-21 10:33:15 +01:00
Jonathan Lange
81b05a33ee
Make ReadBinary more general and re-use in router
2016-06-20 18:02:23 +01:00
Jonathan Lange
13269e8110
Helper for reading & writing from binary
2016-06-17 15:24:33 +01:00