Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
37 lines
709 B
Python
37 lines
709 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Optional, Union
|
|
|
|
from tracy_client.TracyClientBindings import (
|
|
is_enabled,
|
|
program_name,
|
|
thread_name,
|
|
app_info,
|
|
ColorType,
|
|
PlotFormatType,
|
|
frame_mark,
|
|
frame_mark_start,
|
|
frame_mark_end,
|
|
frame_image,
|
|
alloc,
|
|
free,
|
|
message,
|
|
plot,
|
|
_plot_config,
|
|
)
|
|
from tracy_client.scoped import (
|
|
Color,
|
|
ScopedZone,
|
|
ScopedFrame,
|
|
ScopedZoneDecorator,
|
|
ScopedFrameDecorator,
|
|
)
|
|
|
|
PlotType = Union[int, PlotFormatType]
|
|
|
|
|
|
def plot_config(
|
|
name: str, type: PlotType, step: bool = False, flip: bool = False, color: Color = 0
|
|
) -> Optional[int]:
|
|
return _plot_config(name, int(type), step, flip, int(color))
|