...

Text file src/internal/trace/mkcanned.bash

Documentation: internal/trace

     1#!/usr/bin/env bash
     2# Copyright 2016 The Go Authors. All rights reserved.
     3# Use of this source code is governed by a BSD-style
     4# license that can be found in the LICENSE file.
     5
     6# mkcanned.bash creates canned traces for the trace test suite using
     7# the current Go version.
     8
     9set -e
    10
    11if [ $# != 1 ]; then
    12    echo "usage: $0 <label>" >&2
    13    exit 1
    14fi
    15
    16go test -run '^$' -bench ClientServerParallel4 -benchtime 10x -trace "testdata/http_$1_good" net/http
    17go test -run 'TraceStress$|TraceStressStartStop$|TestUserTaskRegion$' runtime/trace -savetraces
    18mv ../../runtime/trace/TestTraceStress.trace "testdata/stress_$1_good"
    19mv ../../runtime/trace/TestTraceStressStartStop.trace "testdata/stress_start_stop_$1_good"
    20mv ../../runtime/trace/TestUserTaskRegion.trace "testdata/user_task_region_$1_good"

View as plain text