public List<SequenceRange> buildSequenceRanges() {
        ArrayList<SequenceRange> ranges = new ArrayList<>();
        for (ProfiledSegment segment : this.segments) {
            int minSequence = segment.minSequence;
            do {
                int batchMax = Math.min(minSequence + SEQUENCE_RANGE_BATCH_SIZE, segment.maxSequence);
                ranges.add(new SequenceRange(segment.getSegmentId(), minSequence, batchMax));
                minSequence = batchMax;
            }
            while (minSequence < segment.maxSequence);
        }

        return ranges;
    }
build current profiles segment snapshot search sequence ranges
oap-server/server-tools/profile-exporter/tool-profile-snapshot-bootstrap/src/main/java/org/apache/skywalking/oap/server/tool/profile/exporter/ProfiledBasicInfo.java