Skip to content

Commit

Permalink
#19 fix method filter result
Browse files Browse the repository at this point in the history
  • Loading branch information
龚德伟 committed Nov 27, 2019
1 parent ebe4244 commit 15531a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flare-server/src/profiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,9 @@ impl Profiler {
let filter_method_size = method_info_vec.len();
println!("filter method size: {}", filter_method_size);
let mut method_infos: &[MethodInfo] = &method_info_vec;
if method_infos.len() > 30 {
method_infos = &method_info_vec[0..30];
}
// if method_infos.len() > 30 {
// method_infos = &method_info_vec[0..30];
// }
let result = json!({
"session_id": session_id,
"method_name_filter": method_name_filter,
Expand Down Expand Up @@ -734,9 +734,10 @@ impl Profiler {
search_progress = new_search_progress;
let result = json!({
"session_id": session_id,
"method_ids": method_ids,
//"method_ids": method_ids,
"search_progress": search_progress,
"search_finished": false,
"search_message": format!("searching {}", thread.name)
});
sender.send_message(&wrap_response(&cmd, &result));
println!("search progress: {}%", search_progress);
Expand Down

0 comments on commit 15531a4

Please sign in to comment.