(jni_env: *mut JNIEnv,
thread: jthread,
max_depth: jint,
index_until_start: usize)
| 432 | } |
| 433 | |
| 434 | unsafe fn get_params(jni_env: *mut JNIEnv, |
| 435 | thread: jthread, |
| 436 | max_depth: jint, |
| 437 | index_until_start: usize) -> Result<Vec<MethodInfo>, String> { |
| 438 | // Grab the trace |
| 439 | let trace = get_stack_trace(thread, max_depth)?; |
| 440 | // Go over every frame getting the info |
| 441 | let mut ret: Vec<MethodInfo> = Vec::new(); |
| 442 | for (index, frame) in trace.iter().enumerate() { |
| 443 | if index >= index_until_start { |
| 444 | ret.push(get_frame_params(jni_env, thread, frame, index as jint)?); |
| 445 | } |
| 446 | } |
| 447 | return Result::Ok(ret); |
| 448 | } |
| 449 | |
| 450 | unsafe fn class_sig(class: jclass) -> Result<String, String> { |
| 451 | let mut sig: *mut c_char = 0 as *mut c_char; |
no test coverage detected