mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-27 12:11:12 +08:00
fix: 采样样本记表代际,直方图按代际解析函数名并订正并列注释
This commit is contained in:
@@ -249,15 +249,15 @@ impl IterState {
|
||||
/// 指令周期采样状态:采样周期(2 的幂)与样本记录表。
|
||||
///
|
||||
/// 开启时 dispatch 主循环每 `period` 条指令记一条样本(flat_id、pc、opcode、
|
||||
/// frames 深度),run 末按 flat_id 聚合并输出 top-K 直方图(stderr)。
|
||||
/// 关闭(`period == 0`)时热路径仅一次可预测分支,零写零分配。
|
||||
/// frames 深度、表代际),run 末按 (flat_id, 表代际) 聚合并输出 top-K 直方图
|
||||
/// (stderr)。关闭(`period == 0`)时热路径仅一次可预测分支,零写零分配。
|
||||
pub(crate) struct SampleState {
|
||||
/// 采样周期(2 的幂,0 = 关闭)。
|
||||
pub(crate) period: u64,
|
||||
/// 直方图 top-K 大小(默认 10)。
|
||||
pub(crate) top_k: usize,
|
||||
/// 样本记录:(flat_id, pc, opcode, frames 深度),run 边界清空。
|
||||
pub(crate) records: Vec<(u32, u32, u8, u32)>,
|
||||
/// 样本记录:(flat_id, pc, opcode, frames 深度, 表代际),run 边界清空。
|
||||
pub(crate) records: Vec<(u32, u32, u8, u32, u32)>,
|
||||
}
|
||||
|
||||
impl SampleState {
|
||||
|
||||
Reference in New Issue
Block a user