SHARE
TWEET

Untitled

a guest Jun 20th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Samples: 44K of event 'cpu-clock', Event count (approx.): 11073000000
  2. Overhead  Command          Shared Object               Symbol
  3.   21.92%  juke             [kernel.kallsyms]           [k] do_syscall_64
  4.   17.52%  juke             libpthread-2.23.so          [.] __libc_recv
  5.    5.53%  juke             [kernel.kallsyms]           [k] inet_diag_table+0x800000004df0
  6.    4.13%  juke             [kernel.kallsyms]           [k] tcp_recvmsg
  7.    3.59%  juke             [kernel.kallsyms]           [k] __fget
  8.    3.31%  juke             [kernel.kallsyms]           [k] inet_recvmsg
  9.    3.22%  juke             [kernel.kallsyms]           [k] seccomp_run_filters
  10.    3.10%  juke             [kernel.kallsyms]           [k] aa_profile_af_perm
  11.    3.05%  juke             [kernel.kallsyms]           [k] aa_label_sk_perm
  12.    2.27%  juke             [kernel.kallsyms]           [k] aa_sk_perm
  13.    1.94%  juke             [kernel.kallsyms]           [k] __sys_recvfrom
  14.    1.75%  juke             [kernel.kallsyms]           [k] tcp_release_cb
  15.    1.74%  juke             [kernel.kallsyms]           [k] __local_bh_enable_ip
  16.    1.74%  juke             [kernel.kallsyms]           [k] syscall_trace_enter
  17.    1.74%  juke             [kernel.kallsyms]           [k] __x64_sys_recvfrom
  18.    1.63%  juke             libpthread-2.23.so          [.] __pthread_enable_asynccancel
  19.    1.54%  juke             [kernel.kallsyms]           [k] release_sock
  20.    1.44%  juke             [kernel.kallsyms]           [k] __seccomp_filter
  21.    1.34%  juke             libpthread-2.23.so          [.] __pthread_disable_asynccancel
  22.    1.31%  juke             juke                        [.] _ZN88_$LT$tiny_http..util..sequential..SequentialReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$4read17h1ab62509f0eccd24E
  23.    1.23%  juke             juke                        [.] _ZN71_$LT$std..io..buffered..BufReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$4read17he719b00617f471fdE
  24.    1.18%  juke             juke                        [.] _ZN91_$LT$rouille..websocket..websocket..Websocket$u20$as$u20$core..iter..iterator..Iterator$GT$4next17h0096bf051fcbfa61E
  25.    1.09%  juke             [kernel.kallsyms]           [k] import_single_range
  26.    0.98%  juke             [kernel.kallsyms]           [k] aa_label_next_confined
  27.    0.94%  juke             [kernel.kallsyms]           [k] sock_recvmsg
  28.    0.76%  juke             [kernel.kallsyms]           [k] apparmor_socket_recvmsg
  29.    0.75%  juke             [kernel.kallsyms]           [k] _raw_spin_lock_bh
  30.    0.70%  juke             [kernel.kallsyms]           [k] __fget_light
  31.    0.63%  juke             [kernel.kallsyms]           [k] __indirect_thunk_start
  32.    0.61%  juke             [kernel.kallsyms]           [k] rcu_all_qs
  33.    0.55%  juke             juke                        [.] _ZN96_$LT$tiny_http..util..custom_stream..CustomStream$LT$R$C$$u20$W$GT$$u20$as$u20$std..io..Read$GT$4read17h4875891095ddc7f7E
  34.    0.50%  juke             [kernel.kallsyms]           [k] security_socket_recvmsg
  35.    0.44%  juke             [kernel.kallsyms]           [k] _raw_spin_unlock_bh
  36.      
  37. #0  0x00007f41cf58087f in recv () from target:/lib/x86_64-linux-gnu/libpthread.so.0
  38. #1  0x00005598b9ef49ba in recv_with_flags () at src/libstd/sys/unix/net.rs:228
  39. #2  read () at src/libstd/sys/unix/net.rs:237
  40. #3  read () at src/libstd/sys_common/net.rs:255
  41. #4  read () at src/libstd/net/tcp.rs:570
  42. #5  0x00005598b9c3d6dc in <std::io::buffered::BufReader<R> as std::io::Read>::read ()
  43. #6  0x00005598b9c30441 in <tiny_http::util::sequential::SequentialReader<R> as std::io::Read>::read ()
  44. #7  0x00005598b9be94c2 in <tiny_http::util::custom_stream::CustomStream<R, W> as std::io::Read>::read ()
  45. #8  0x00005598b9c0caad in <rouille::websocket::websocket::Websocket as core::iter::traits::iterator::Iterator>::next ()
  46. #9  0x00005598b9bcf839 in juke::web::websocket_handling_thread ()
  47. #10 0x00005598b9bc67b4 in std::sys_common::backtrace::__rust_begin_short_backtrace ()
  48. #11 0x00005598b9bb109c in std::panicking::try::do_call ()
  49. #12 0x00005598b9f0113a in __rust_maybe_catch_panic () at src/libpanic_unwind/lib.rs:87
  50. #13 0x00005598b9bba0b0 in <F as alloc::boxed::FnBox<A>>::call_box ()
  51. #14 0x00005598b9f004ce in call_once<(),()> () at /rustc/fc50f328b0353b285421b8ff5d4100966387a997/src/liballoc/boxed.rs:759
  52. #15 start_thread () at src/libstd/sys_common/thread.rs:14
  53. #16 thread_start () at src/libstd/sys/unix/thread.rs:81
  54. #17 0x00007f41cf5776ba in start_thread () from target:/lib/x86_64-linux-gnu/libpthread.so.0
  55. #18 0x00007f41cf09741d in clone () from target:/lib/x86_64-linux-gnu/libc.so.6
  56.      
  57. fn websocket_handling_thread(
  58.     mut websocket: websocket::Websocket,
  59.     global_status: &Arc<RwLock<PlaybackStatus>>,
  60.     global_queue: &Arc<RwLock<TheList>>,
  61. ) {
  62.     // We wait for a new message to come from the websocket.
  63.     while let Some(message) = websocket.next() {
  64.      
  65. (GET) (/ws) => {
  66.     let (response, websocket) = try_or_400!(websocket::start(&request, Some("juke")));
  67.     let gs = global_status.clone();
  68.     let gq = global_queue.clone();
  69.     std::thread::spawn(move || {
  70.         let ws = websocket.recv().unwrap();
  71.         websocket_handling_thread(ws, &gs, &gq);
  72.     });
  73.     response
  74. },
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top