pub fn print_query_stack<Qcx: QueryContext>(
    qcx: Qcx,
    current_query: Option<QueryJobId>,
    handler: &Handler,
    num_frames: Option<usize>
) -> usize