Marc Carré
d46c2266ce
Change Sirupsen/logrus to sirupsen/logrus
...
```
$ 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
```
2018-07-23 20:10:14 +02:00
Bryan Boreham
70cd79307e
Re-use gzip writers in a pool
...
Since they allocate sizeable chunks of memory, this can save on garbage-collection.
2018-07-08 16:30:07 +00:00
Bryan Boreham
8e5b19cbcb
Use buffer pool in report.MakeFromBytes() to reduce garbage-collection
2018-07-04 14:03:17 +00:00
Bryan Boreham
84169c6c55
Use a buffer pool in report.ReadBinary() to reduce garbage-collection
2018-07-04 13:35:44 +00:00
Bryan Boreham
80dbd3443c
probe: Add -probe.publish.stdout option for debugging
...
This option gives a crude way to view the raw probe data as json in
the container logs, so that you can check exactly what it would have
sent.
We stub out the PipeClient interface with a dummy implementation in
this mode.
2018-06-19 22:59:01 +00:00
Bryan Boreham
06c895267c
Reports: streamline report serialization
...
Move the creation of the buffer and the choice of compression level
(which never changes) into WriteBinary(), to simplify the code.
2018-06-19 22:59:01 +00:00
Bryan Boreham
05d5d339c4
Decode reports from a byte buffer
...
Reading and uncompressing the entire message into memory first allows
the decoder to avoid memory allocations in field names, etc.
2017-11-29 21:56:55 +00:00
Matthias Radestock
cdbc01ecf9
simplify report.MakeFromFile
...
this new version is less efficient... but not for much longer
2017-11-29 21:48:52 +00: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