Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Millsap - How to Make an Application Easy to Diagnose (Slides)

Millsap - How to Make an Application Easy to Diagnose (Slides)

Ratings: (0)|Views: 29|Likes:
Published by rockerabc123

More info:

Published by: rockerabc123 on Jun 28, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/25/2010

pdf

text

original

 
Slide 1
Copyright ©1999–2005 by Hotsos Enterprises, Ltd.
www.hotsos.com
Cary Millsap (cary.millsap@hotsos.com)Hotsos Enterprises, Ltd.
Hotsos Symposium 2005 3:00pm–4:00pm Wednesday 9 March 2005 
How to Make an Application Easy to Diagnose
Slide 2
Copyright ©1999–2005 by Hotsos Enterprises, Ltd.
www.hotsos.com
Agenda
MotivesInstrumentingyour Oracle db callsInstrumentingeverything else
 
Slide 3
Copyright ©1999–2005 by Hotsos Enterprises, Ltd.
www.hotsos.com
“If you can’t measure it, you can’t manage it.”—Peter Drucker 
Software performance is measured by its speedSpeed = Result ÷Time
If you canÊt measure the timeit takesfor an application to produce a result, then you canÊt manage its performance.
 
Slide 4
Copyright ©1999–2005 by Hotsos Enterprises, Ltd.
www.hotsos.com
Software developers use profilers and tracers todetermine how long their code runs. And why.
Example: GNU
gprof 
% cumulative self selftotaltime seconds secondscalls us/call us/callname60.37 0.49 0.4962135400 0.01 0.01step39.63 0.82 0.33 499999 0.65 1.64 nseq
Example: GNU
strace
times(NULL) = 53821310gettimeofday({1105483456, 234638}, NULL) = 0_llseek(11, 6971392, [6971392], SEEK_SET) = 0readv(11, [{"\6\242\0\0S\3@\0\247\274\0\0\0"..., 8192}], 6) = 49152gettimeofday({1105483456, 253209}, NULL) = 0times(NULL) = 53821312write(5, "WAIT #5: nam=\'db file scattered read\' ela="..., 65) = 65write(5, "\n", 1) = 1
 
Slide 5
Copyright ©1999–2005 by Hotsos Enterprises, Ltd.
www.hotsos.com
But you can do much more if you instrumentyour application
There are things a developer knows that an OS tool cannot –Aggregate by unit of businesswork –Reveal context-specific application informationWith instrumentation insideyour application –Better, faster code –Easier to diagnose and repair 
The result: happier customers, lower support costs.
Slide 6
Copyright ©1999–2005 by Hotsos Enterprises, Ltd.
www.hotsos.com
Instrumentingyour Oracle db calls

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->