Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e84ff248
Commit
e84ff248
authored
Sep 11, 2017
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds codahale to vendor
parent
a234e894
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
0 deletions
+81
-0
vendor/github.com/codahale/hdrhistogram/LICENSE
+21
-0
vendor/github.com/codahale/hdrhistogram/README.md
+15
-0
vendor/github.com/codahale/hdrhistogram/hdr.go
+0
-0
vendor/github.com/codahale/hdrhistogram/window.go
+45
-0
No files found.
vendor/github.com/codahale/hdrhistogram/LICENSE
0 → 100644
View file @
e84ff248
The MIT License (MIT)
Copyright (c) 2014 Coda Hale
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
vendor/github.com/codahale/hdrhistogram/README.md
0 → 100644
View file @
e84ff248
hdrhistogram
============
[
![Build Status
](
https://travis-ci.org/codahale/hdrhistogram.png?branch=master
)
](https://travis-ci.org/codahale/hdrhistogram)
A pure Go implementation of the
[
HDR Histogram
](
https://github.com/HdrHistogram/HdrHistogram
)
.
> A Histogram that supports recording and analyzing sampled data value counts
> across a configurable integer value range with configurable value precision
> within the range. Value precision is expressed as the number of significant
> digits in the value recording, and provides control over value quantization
> behavior across the value range and the subsequent value resolution at any
> given level.
For documentation, check
[
godoc
](
http://godoc.org/github.com/codahale/hdrhistogram
)
.
vendor/github.com/codahale/hdrhistogram/hdr.go
0 → 100644
View file @
e84ff248
This diff is collapsed.
Click to expand it.
vendor/github.com/codahale/hdrhistogram/window.go
0 → 100644
View file @
e84ff248
package
hdrhistogram
// A WindowedHistogram combines histograms to provide windowed statistics.
type
WindowedHistogram
struct
{
idx
int
h
[]
Histogram
m
*
Histogram
Current
*
Histogram
}
// NewWindowed creates a new WindowedHistogram with N underlying histograms with
// the given parameters.
func
NewWindowed
(
n
int
,
minValue
,
maxValue
int64
,
sigfigs
int
)
*
WindowedHistogram
{
w
:=
WindowedHistogram
{
idx
:
-
1
,
h
:
make
([]
Histogram
,
n
),
m
:
New
(
minValue
,
maxValue
,
sigfigs
),
}
for
i
:=
range
w
.
h
{
w
.
h
[
i
]
=
*
New
(
minValue
,
maxValue
,
sigfigs
)
}
w
.
Rotate
()
return
&
w
}
// Merge returns a histogram which includes the recorded values from all the
// sections of the window.
func
(
w
*
WindowedHistogram
)
Merge
()
*
Histogram
{
w
.
m
.
Reset
()
for
_
,
h
:=
range
w
.
h
{
w
.
m
.
Merge
(
&
h
)
}
return
w
.
m
}
// Rotate resets the oldest histogram and rotates it to be used as the current
// histogram.
func
(
w
*
WindowedHistogram
)
Rotate
()
{
w
.
idx
++
w
.
Current
=
&
w
.
h
[
w
.
idx
%
len
(
w
.
h
)]
w
.
Current
.
Reset
()
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment