-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to capture data (0 samples) #63
Comments
Sounds like it might be I/O bound, not cpu. Try real time mode instead.
|
@tmm1 Thank you for the fast response! Yes, using Note that (as described in this comment) my ad-hoc profiling by wrapping the major methods with Any opinion on why the results of this differ so greatly from my ad-hoc profiling?
|
The miss rate is really high which suggests something is blocking the ruby
|
The method taking up most of the time (in my hand-profiling) is, at it's core: def handle_server_response
msg = ''
while true
case line = socket.gets
when "OK\n", nil
break
when /^ACK/
error = line
break
else
msg << line
end
end
end So there's likely a large amount of time blocking, waiting for the socket to return. Thanks for commenting on the miss rate, I didn't see any documentation on what that meant, or how to interpret 97% (as bad or good). |
Why am I not getting any samples? My internal t2-t1 profiling without stackprof shows that it takes about 40ms for each call to
@mpd.add(song)
, and I know that about 3-4 pure Ruby methods are called as part of each call.Am I doing something wrong? This is on Ubuntu 15.10:
Linux music 4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: