ratthing

Learn

 ed this new one today, looking for a solution to a completely unrelated problem (why the heck the load on my box goes up to 6+ when copying a file from a usb drive to a firewire drive using the Finder):

debug_http () { /usr/bin/curl $@ -o /dev/null -w "dns: %{time_namelookup} connect:
%{time_connect} pretransfer: %{time_pretransfer} starttransfer: %{time_starttransfer}
total: %{time_total} " ; }


This particular bash function uses curl to display times for various parts of an http connection, so you can figure out why a page is loading slowly.

Slap that in your .bashrc or .profile, then call from the command line:
~ratthing%> debug_http www.cnn.com


Knew this in theory, never thought of using it in practice.

=RT=

perkiset

Handy RT, thanks!


Perkiset's Place Home   Politics @ Perkiset's