models

package
v0.0.0-...-1b28c04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppModel

type AppModel struct {
	common.BaseModelCreate
	Name      string `json:"name"`
	Version   string `json:"version"`
	Package   string `json:"package"`
	Extention string `json:"extention"`
	Remark    string `json:"remark"`
	TaskId    int    `json:"task_id"`
}

func (AppModel) TableName

func (AppModel) TableName() string

type AuthModel

type AuthModel struct {
	common.BaseModel
	UserId    int    `json:"user_id"`
	AppKey    string `json:"app_key"`
	AppSecret string `json:"app_secret"`
	Status    int    `json:"status"`
}

func (AuthModel) TableName

func (AuthModel) TableName() string

type DataSourceModel

type DataSourceModel struct {
	common.BaseModelNormal
	RecId     int `json:"rec_id"`
	ContentId int `json:"content_id"`
	Status    int `json:"status";gorm:"DEFAULT:0"`
}

func (DataSourceModel) TableName

func (DataSourceModel) TableName() string

type DataUploadModel

type DataUploadModel struct {
	common.BaseModel
	TaskId         int     `json:"task_id" binding:"required"`
	LabelId        int     `json:"label_id" binding:"required"`
	LabelName      string  `json:"label_name" binding:"required"`
	Fps            float32 `json:"fps"`
	CpuTotal       float32 `json:"cpu_total"`
	CpuApp         float32 `json:"cpu_app"`
	MemoryTotal    float32 `json:"memory_total"`
	MemoryVirtual  float32 `json:"memory_virtual"`
	MemoryReal     float32 `json:"memory_real"`
	NetworkSend    float32 `json:"network_send"`
	NetworkReceive float32 `json:"network_receive"`
	GpuRendor      float32 `json:"gpu_rendor"`
	GpuTiler       float32 `json:"gpu_tiler"`
	GpuDevice      float32 `json:"gpu_device"`
	CSwitch        float32 `json:"c_switch"`
	BatteryCurrent float32 `json:"battery_current"`
	BatteryPower   float32 `json:"battery_power"`
	BatteryVoltage float32 `json:"battery_voltage"`
	ScreenShot     float32 `json:"screen_shot"`
}

func (DataUploadModel) TableName

func (DataUploadModel) TableName() string

type DeviceModel

type DeviceModel struct {
	common.BaseModel
	Name          string `json:"name"`
	Cpu           string `json:"cpu"`
	Gpu           string `json:"gpu"`
	Os            string `json:"os"`
	CpuType       string `json:"cpu"`
	CpuArch       string `json:"cpu_arch"`
	CpuCoreNumber int    `json:"cpu_core_number"`
	CpuFrequency  string `json:"cpu_frequency"`
	Ram           string `json:"ram"`
	Rom           string `json:"rom"`
	Type          string `json:"type"`
	TaskId        int    `json:"task_id"`
}

func (DeviceModel) TableName

func (DeviceModel) TableName() string

type LabelBatteryModel

type LabelBatteryModel struct {
	common.BaseModelCreate
	TaskId     int    `json:"task_id"`
	LabelId    int    `json:"label_id"`
	CurrentAvg string `json:"current_avg"`
	PowerAvg   string `json:"power_avg"`
	VoltageAvg string `json:"voltage_avg"`
}

func (LabelBatteryModel) TableName

func (LabelBatteryModel) TableName() string

type LabelCupModel

type LabelCupModel struct {
	common.BaseModelCreate
	TaskId      int    `json:"task_id"`
	LabelId     int    `json:"label_id"`
	CpuTotalAvg string `json:"cpu_total_avg"`
	CpuTotalMax string `json:"cpu_total_max"`
	CpuTotal50  string `json:"cpu_total_50"`
	CpuTotal90  string `json:"cpu_total_90"`
	CpuTotal95  string `json:"cpu_total_95"`
	CpuAppAvg   string `json:"cpu_app_avg"`
	CpuAppMax   string `json:"cpu_app_max"`
	CpuApp50    string `json:"cpu_app_50"`
	CpuApp90    string `json:"cpu_app_90"`
	CpuApp95    string `json:"cpu_app_95"`
	Remark      string `json:"remark"`
}

func (LabelCupModel) TableName

func (LabelCupModel) TableName() string

type LabelFpsModel

type LabelFpsModel struct {
	common.BaseModelCreate
	TaskId  int    `json:"task_id"`
	LabelId int    `json:"label_id"`
	FpsAvg  string `json:"fps_avg"`
	FpsVar  string `json:"fps_var"`
	Fps18   string `json:"fps_18"`
	Fps25   string `json:"fps_25"`
	FpsDrop string `json:"fps_drop"`
}

func (LabelFpsModel) TableName

func (LabelFpsModel) TableName() string

type LabelGpuModel

type LabelGpuModel struct {
	common.BaseModelCreate
	TaskId    int    `json:"task_id"`
	LabelId   int    `json:"label_id"`
	RendorAvg string `json:"rendor_avg"`
	TilerAvg  string `json:"tiler_avg"`
	DeviceAvg string `json:"device_avg"`
}

func (LabelGpuModel) TableName

func (LabelGpuModel) TableName() string

type LabelMemoryModel

type LabelMemoryModel struct {
	common.BaseModelCreate
	TaskId           int    `json:"task_id"`
	LabelId          int    `json:"label_id"`
	MemoryPeak       string `json:"memory_peak"`
	MemoryTotalAvg   string `json:"memory_total_avg"`
	MemoryTotalMax   string `json:"memory_total_max"`
	MemoryTotal50    string `json:"memory_total_50"`
	MemoryTotal90    string `json:"memory_total_90"`
	MemoryTotal95    string `json:"memory_total_95"`
	MemoryRealAvg    string `json:"memory_real_avg"`
	MemoryRealMax    string `json:"memory_real_max"`
	MemoryReal50     string `json:"memory_real_50"`
	MemoryReal90     string `json:"memory_real_90"`
	MemoryReal95     string `json:"memory_real_95"`
	MemoryVirtualAvg string `json:"memory_virtual_avg"`
	MemoryVirtualMax string `json:"memory_virtual_max"`
	MemoryVirtual50  string `json:"memory_virtual_50"`
	MemoryVirtual90  string `json:"memory_virtual_90"`
	MemoryVirtual95  string `json:"memory_virtual_95"`
}

func (LabelMemoryModel) TableName

func (LabelMemoryModel) TableName() string

type LabelModel

type LabelModel struct {
	common.BaseModel
	TaskId      int    `json:"task_id"`
	Name        string `json:"name"`
	BeginDataId int    `json:"begin_data_id"`
	EndDataId   int    `json:"end_data_id"`
}

func (LabelModel) TableName

func (LabelModel) TableName() string

type LabelNetworkModel

type LabelNetworkModel struct {
	common.BaseModelCreate
	Name       string `json:"name"`
	TaskId     int    `json:"task_id"`
	LabelId    int    `json:"label_id"`
	SendAvg    string `json:"send_avg"`
	SendSum    string `json:"send_sum"`
	ReceiveAvg string `json:"receive_avg"`
	ReceiveSum string `json:"receive_sum"`
}

func (LabelNetworkModel) TableName

func (LabelNetworkModel) TableName() string

type LabelSummaryModel

type LabelSummaryModel struct {
	common.BaseModel
	LabelId           int       `json:"label_id"`
	JankAvg           float32   `json:"jank_avg"`
	JankPerHour       float32   `json:"jank_per_hour"`
	BigJankAvg        float32   `json:"big_jank_avg"`
	BigJankPerHour    float32   `json:"big_jank_per_hour"`
	FtimeAvg          time.Time `json:"ftime_avg"`
	FtimeGe_100       time.Time `json:"ftime_ge_100"`
	FtimeDelta        time.Time `json:"ftime_delta"`
	FpsAvg            float32   `json:"fps_avg"`
	FpsVar            float32   `json:"fps_var"`
	FpsGe_18          float32   `json:"fps_ge_18"`
	FpsGe_25          float32   `json:"fps_ge_25"`
	FpsDrop           float32   `json:"fps_drop"`
	CpuAvg            float32   `json:"cpu_avg"`
	CpuLe_50Avg       float32   `json:"cpu_le_50_avg"`
	CpuLe_90Avg       float32   `json:"cpu_le_80_avg"`
	CpuAppAvg         float32   `json:"cpu_app_avg"`
	CpuAppLe_50Avg    float32   `json:"cpu_app_le_60_avg"`
	CpuAppLe_90Avg    float32   `json:"cpu_app_le_80_avg"`
	CpuTempAvg        float32   `json:"cpu_temp_avg"`
	MemUseAvg         float32   `json:"mem_use_avg"`
	MemUseMax         float32   `json:"mem_use_max"`
	MemSwapAvg        float32   `json:"mem_swap_avg"`
	MemSwapMax        float32   `json:"mem_swap_max"`
	MemNativePssAvg   float32   `json:"mem_native_pss_avg"`
	MemGfxAvg         float32   `json:"mem_gfx_avg"`
	MemGlAvg          float32   `json:"mem_gl_avg"`
	MemUnknownAvg     float32   `json:"mem_unknown_avg"`
	MemXcodeAvg       float32   `json:"mem_xcode_avg"`
	MemXcodeMax       float32   `json:"mem_xcode_max"`
	MemRealAvg        float32   `json:"mem_real_avg"`
	MemRealMax        float32   `json:"mem_real_max"`
	MemVirtualAvg     float32   `json:"mem_virtual_avg"`
	MemVirtualMax     float32   `json:"mem_virtual_max"`
	GpuUseAvg         float32   `json:"gpu_use_avg"`
	GpuClockAvg       float32   `json:"gpu_clock_avg"`
	GpuRenderAvg      float32   `json:"gpu_render_avg"`
	GpuTilerAvg       float32   `json:"gpu_tiler_avg"`
	GpuDeviceAvg      float32   `json:"gpu_device_avg"`
	SwitchAvg         float32   `json:"switch_avg"`
	WakeupAvg         float32   `json:"wakeup_avg"`
	NetSendAvg        float32   `json:"net_send_avg"`
	NetSendSum        float32   `json:"net_send_sum"`
	NetSendPre_10mAvg float32   `json:"net_send_pre_10m_avg"`
	NetRecvAvg        float32   `json:"net_recv_avg"`
	NetRecvSum        float32   `json:"net_recv_sum"`
	NetRecvPre_10mAvg float32   `json:"net_recv_pre_10m_avg"`
	BatteryCurrentAvg float32   `json:"battery_current_avg"`
	BatteryPowerAvg   float32   `json:"battery_power_avg"`
	BatteryVoltageAvg float32   `json:"battery_voltage_avg"`
	CpuEnergy         float32   `json:"cpu_energy"`
	GpuEnergy         float32   `json:"gpu_energy"`
	NetEnergy         float32   `json:"net_energy"`
	LocationEnergy    float32   `json:"location_energy"`
	DisplayEnergy     float32   `json:"display_energy"`
	OverheadEnergy    float32   `json:"overhead_energy"`
}

func (LabelSummaryModel) TableName

func (LabelSummaryModel) TableName() string

type TaskModel

type TaskModel struct {
	common.BaseModel
	Name       string `json:"name"`
	UserId     int    `json:"user_id"`
	TimeUse    int    `json:"time_use"`
	SdkVersion string `json:"sdk_version"`
	Remark     string `json:"remark"`
}

func (TaskModel) TableName

func (TaskModel) TableName() string

type TaskSummaryModel

type TaskSummaryModel struct {
	common.BaseModel
	TaskId            int     `json:"task_id"`
	FpsAvg            float32 `json:"fps_avg"`
	FpsVar            float32 `json:"fps_var"`
	FpsGe_18          float32 `json:"fps_ge_18"`
	FpsGe_25          float32 `json:"fps_ge_25"`
	FpsDrop           float32 `json:"fps_drop"`
	JankAvg           float32 `json:"jank_avg"`
	JankPerHour       float32 `json:"jank_per_hour"`
	BigJankAvg        float32 `json:"big_jank_avg"`
	BigJankPerHour    float32 `json:"big_jank_per_hour"`
	FtimeAvg          float32 `json:"ftime_avg"`
	FtimeGe_100       float32 `json:"ftime_ge_100"`
	FtimeDelta        float32 `json:"ftime_delta"`
	CpuAvg            float32 `json:"cpu_avg"`
	CpuLe_50Avg       float32 `json:"cpu_le_50_avg"`
	CpuLe_90Avg       float32 `json:"cpu_le_80_avg"`
	CpuAppAvg         float32 `json:"cpu_app_avg"`
	CpuAppLe_50Avg    float32 `json:"cpu_app_le_60_avg"`
	CpuAppLe_90Avg    float32 `json:"cpu_app_le_80_avg"`
	CpuTempAvg        float32 `json:"cpu_temp_avg"`
	MemUseAvg         float32 `json:"mem_use_avg"`
	MemUseMax         float32 `json:"mem_use_max"`
	MemSwapAvg        float32 `json:"mem_swap_avg"`
	MemSwapMax        float32 `json:"mem_swap_max"`
	MemNativePssAvg   float32 `json:"mem_native_pss_avg"`
	MemGfxAvg         float32 `json:"mem_gfx_avg"`
	MemGlAvg          float32 `json:"mem_gl_avg"`
	MemUnknownAvg     float32 `json:"mem_unknown_avg"`
	MemXcodeAvg       float32 `json:"mem_xcode_avg"`
	MemXcodeMax       float32 `json:"mem_xcode_max"`
	MemRealAvg        float32 `json:"mem_real_avg"`
	MemRealMax        float32 `json:"mem_real_max"`
	MemVirtualAvg     float32 `json:"mem_virtual_avg"`
	MemVirtualMax     float32 `json:"mem_virtual_max"`
	GpuUseAvg         float32 `json:"gpu_use_avg"`
	GpuClockAvg       float32 `json:"gpu_clock_avg"`
	GpuRenderAvg      float32 `json:"gpu_render_avg"`
	GpuTilerAvg       float32 `json:"gpu_tiler_avg"`
	GpuDeviceAvg      float32 `json:"gpu_device_avg"`
	SwitchAvg         float32 `json:"switch_avg"`
	WakeupAvg         float32 `json:"wakeup_avg"`
	NetSendAvg        float32 `json:"net_send_avg"`
	NetSendSum        float32 `json:"net_send_sum"`
	NetSendPre_10mAvg float32 `json:"net_send_pre_10m_avg"`
	NetRecvAvg        float32 `json:"net_recv_avg"`
	NetRecvSum        float32 `json:"net_recv_sum"`
	NetRecvPre_10mAvg float32 `json:"net_recv_pre_10m_avg"`
	BatteryCurrentAvg float32 `json:"battery_current_avg"`
	BatteryPowerAvg   float32 `json:"battery_power_avg"`
	BatteryVoltageAvg float32 `json:"battery_voltage_avg"`
	CpuEnergy         float32 `json:"cpu_energy"`
	GpuEnergy         float32 `json:"gpu_energy"`
	NetEnergy         float32 `json:"net_energy"`
	LocationEnergy    float32 `json:"location_energy"`
	DisplayEnergy     float32 `json:"display_energy"`
	OverheadEnergy    float32 `json:"overhead_energy"`
}

func (TaskSummaryModel) TableName

func (TaskSummaryModel) TableName() string

type TaskUserModel

type TaskUserModel struct {
	common.BaseModel
	UserId int    `json:"user_id"`
	TaskId int    `json:"task_id"`
	Remark string `json:"remark"`
}

func (TaskUserModel) TableName

func (TaskUserModel) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL