mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
runtime/trace: stub all public methods
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
package trace
|
package trace
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
)
|
)
|
||||||
@@ -11,3 +12,31 @@ func Start(w io.Writer) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Stop() {}
|
func Stop() {}
|
||||||
|
|
||||||
|
func NewTask(pctx context.Context, taskType string) (ctx context.Context, task *Task) {
|
||||||
|
return context.TODO(), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type Task struct{}
|
||||||
|
|
||||||
|
func (t *Task) End() {}
|
||||||
|
|
||||||
|
func Log(ctx context.Context, category, message string) {}
|
||||||
|
|
||||||
|
func Logf(ctx context.Context, category, format string, args ...any) {}
|
||||||
|
|
||||||
|
func WithRegion(ctx context.Context, regionType string, fn func()) {
|
||||||
|
fn()
|
||||||
|
}
|
||||||
|
|
||||||
|
func StartRegion(ctx context.Context, regionType string) *Region {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type Region struct{}
|
||||||
|
|
||||||
|
func (r *Region) End() {}
|
||||||
|
|
||||||
|
func IsEnabled() bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user