Documentation ¶
Overview ¶
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package cmd ¶
Copyright © 2021 DANIEL PORTO <daniel.porto@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 DNAIEL PORTO <daniel.porto@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 Daniel Porto <daniel.porto@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Execute()
- func Log(message string, a ...interface{})
- func LogDebug(message string, a ...interface{})
- func LogError(message string, a ...interface{})
- func LogFatal(message string, a ...interface{})
- func LogWtag(tag, message string, a ...interface{})
- type StatsStorage
- func (s *StatsStorage) ForceRecomputeArray()
- func (s *StatsStorage) GetAverage(percent bool) int64
- func (s *StatsStorage) GetLatencyValues() (*[]int64, int64)
- func (s *StatsStorage) GetLatencyValuesFlattened() *[]int64
- func (s *StatsStorage) GetMax(percent bool) int64
- func (s *StatsStorage) GetMedian(percent bool) int64
- func (s *StatsStorage) GetPercentile(percentile float32) int64
- func (s *StatsStorage) GetSTD(percent bool) float64
- func (s *StatsStorage) PrintStatsMap()
- func (s *StatsStorage) ReportStats() string
- func (s *StatsStorage) StoreLatencySample(latency int64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StatsStorage ¶
type StatsStorage struct {
// contains filtered or unexported fields
}
func (*StatsStorage) ForceRecomputeArray ¶
func (s *StatsStorage) ForceRecomputeArray()
func (*StatsStorage) GetAverage ¶
func (s *StatsStorage) GetAverage(percent bool) int64
func (*StatsStorage) GetLatencyValues ¶
func (s *StatsStorage) GetLatencyValues() (*[]int64, int64)
func (*StatsStorage) GetLatencyValuesFlattened ¶
func (s *StatsStorage) GetLatencyValuesFlattened() *[]int64
GetLatencyValuesFlattened this version uses more memory and is not required as the compute methods are aware of repetitions
func (*StatsStorage) GetMax ¶
func (s *StatsStorage) GetMax(percent bool) int64
func (*StatsStorage) GetMedian ¶
func (s *StatsStorage) GetMedian(percent bool) int64
func (*StatsStorage) GetPercentile ¶
func (s *StatsStorage) GetPercentile(percentile float32) int64
func (*StatsStorage) GetSTD ¶
func (s *StatsStorage) GetSTD(percent bool) float64
func (*StatsStorage) PrintStatsMap ¶
func (s *StatsStorage) PrintStatsMap()
func (*StatsStorage) ReportStats ¶
func (s *StatsStorage) ReportStats() string
func (*StatsStorage) StoreLatencySample ¶
func (s *StatsStorage) StoreLatencySample(latency int64) bool