mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
refactor: frame converter and mp4 track improvements
- Refactor frame converter implementation - Update mp4 track to use ICodex - General refactoring and code improvements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,17 @@ service api {
|
||||
get: "/debug/api/cpu"
|
||||
};
|
||||
}
|
||||
|
||||
rpc SearchTask (SearchTaskRequest) returns (SearchTaskResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/debug/api/task/{sessionId}"
|
||||
};
|
||||
}
|
||||
rpc SessionList (google.protobuf.Empty) returns (SessionListResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/debug/api/session/list"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// CPU分析请求参数
|
||||
@@ -94,6 +105,43 @@ message CpuResponse {
|
||||
CpuData data = 3;
|
||||
}
|
||||
|
||||
// Monitor plugin messages
|
||||
message SearchTaskRequest {
|
||||
uint32 sessionId = 1;
|
||||
}
|
||||
|
||||
message Task {
|
||||
uint32 id = 1;
|
||||
string owner = 2;
|
||||
uint32 type = 3;
|
||||
google.protobuf.Timestamp startTime = 4;
|
||||
google.protobuf.Timestamp endTime = 5;
|
||||
string description = 6;
|
||||
string reason = 7;
|
||||
uint32 sessionId = 8;
|
||||
uint32 parentId = 9;
|
||||
}
|
||||
|
||||
message SearchTaskResponse {
|
||||
uint32 code = 1;
|
||||
string message = 2;
|
||||
repeated Task data = 3;
|
||||
}
|
||||
|
||||
message Session {
|
||||
uint32 id = 1;
|
||||
uint32 pid = 2;
|
||||
string args = 3;
|
||||
google.protobuf.Timestamp startTime = 4;
|
||||
google.protobuf.Timestamp endTime = 5;
|
||||
}
|
||||
|
||||
message SessionListResponse {
|
||||
uint32 code = 1;
|
||||
string message = 2;
|
||||
repeated Session data = 3;
|
||||
}
|
||||
|
||||
message CpuData {
|
||||
uint64 total_cpu_time_ns = 1; // 总 CPU 时间(纳秒)
|
||||
uint64 sampling_interval_ns = 2; // 采样间隔(纳秒)
|
||||
|
||||
Reference in New Issue
Block a user