Your SlideShare is downloading. ×
0
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Devel::NYTProf::Apache
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Devel::NYTProf::Apache

2,487

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,487
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Devel::NYTProf  + Apache  tokuhirom 2008-08-19(Tue)
  • 2.  Devel::NYTProf  <ul><li>Profiler </li></ul><ul><ul><li>Fast! </li></ul></ul><ul><ul><li>Cool! </li></ul></ul><ul><ul><li>Beautiful! </li></ul></ul>
  • 3. 推測するな 計測せよ
  • 4. Devel::NYTProf::Aapche <ul><li>Profiling mod_perl  </li></ul>
  • 5. How it works? <ul><li>PerlChildInitHandler </li></ul><ul><ul><li>sub { DB::enable_profile } </li></ul></ul><ul><li>PerlChildExitHandler </li></ul><ul><ul><li>sub { DB::_finish } </li></ul></ul>
  • 6. configuration <ul><li>PerlPassEnv NYTPROF </li></ul><ul><li>PerlModule Devel::NYTProf::Apache </li></ul>
  • 7. Run Apache <ul><li>RUN! </li></ul><ul><ul><li>Defaulting NYTPROF env var to 'file= /tmp/nytprof.9533.out ' </li></ul></ul><ul><li>Note: </li></ul><ul><ul><li>MaxClients =1 </li></ul></ul><ul><ul><li>二 回目のデータを使う </li></ul></ul>
  • 8. Processing Results  <ul><li>/tmp/nytprof.9533.out. 9522 </li></ul><ul><ul><li>9522 = child pid </li></ul></ul><ul><li>nytprofhtml –f /tmp/nytprof.9533.out.9522 </li></ul><ul><li>open nytprof/index.html  </li></ul>
  • 9. Result 
  • 10. That's all <ul><li>any questions? </li></ul>

×