MCPcopy
hub / github.com/grafana/k6 / ScaleInt64

Method ScaleInt64

lib/execution_segment.go:734–739  ·  view source on GitHub ↗

ScaleInt64 scales the provided value for our execution segment.

(value int64)

Source from the content-addressed store, hash-verified

732
733// ScaleInt64 scales the provided value for our execution segment.
734func (et *ExecutionTuple) ScaleInt64(value int64) int64 {
735 if len(et.Sequence.ExecutionSegmentSequence) == 1 {
736 return value // if we don't have any segmentation, just return the original value
737 }
738 return et.Sequence.ScaleInt64(et.SegmentIndex, value)
739}
740
741// GetStripedOffsets returns the striped offsets for our execution segment.
742func (et *ExecutionTuple) GetStripedOffsets() (int64, []int64, int64) {

Callers 15

TestExecutionTupleScaleFunction · 0.95
TestBigScaleFunction · 0.95
TestNewExecutionTupleFunction · 0.95
GetPreAllocatedVUsMethod · 0.45
GetMaxVUsMethod · 0.45
GetDescriptionMethod · 0.45
GetVUsMethod · 0.45

Calls

no outgoing calls