github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/trace/trace.go (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 type NameArg struct { 8 Name string `json:"name"` 9 } 10 11 type TaskArg struct { 12 ID uint64 `json:"id"` 13 StartG uint64 `json:"start_g,omitempty"` 14 EndG uint64 `json:"end_g,omitempty"` 15 } 16 17 type RegionArg struct { 18 TaskID uint64 `json:"taskid,omitempty"` 19 } 20 21 type SortIndexArg struct { 22 Index int `json:"sort_index"` 23 }