(analyzer: &mut Option<Analyzer>)
| 505 | } |
| 506 | |
| 507 | fn take_perf(analyzer: &mut Option<Analyzer>) -> RpcResponse { |
| 508 | let req = RpcRequest { |
| 509 | id: 2, |
| 510 | method: "takePerf".to_string(), |
| 511 | params: serde_json::Value::Null, |
| 512 | }; |
| 513 | handle_rpc_request(req, analyzer) |
| 514 | } |
| 515 | |
| 516 | fn analyze_and_take_perf(analyzer: &mut Option<Analyzer>) -> RpcResponse { |
| 517 | let a = analyzer.as_ref().unwrap(); |