You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
普段、Pythonのコードは何となく速かろうという、言ってみれば勘で書いているのだけど、その勘とやらは往々にしてウンコードを生むものである。そこで、プロファイラを使っていきたいと思う。 使えそうなツール そういうわけで、いくつか使えそうなツールをリストアップした。 経過時間のプロファイラ ツール名 メモ profile ビルトイン, ピュアPythonの決定論的プロファイラ cProfile ビルトイン, C拡張の決定論的プロファイラ line_profiler 行単位の決定論的プロファイラ Plop 統計的プロファイラ, Dropboxの人が作ってる statprof 統計的プロファイラ, 開発停止? yep 拡張モジュール用の統計的プロファイラ, バックエンドにgoogle-perftools メモリのプロファイラ ツール名 メモ memory_profiler 行単位でメモリ消費量の
So I’m not hugely happy with the CPU consumption of puppetmasterd under heavy load, and so I’ve been trying to work out where the bottlenecks lie. Unfortunately I’ve yet to find a smoking gun, but here’s a reasonably simple way to produce profiles of puppetmasterd. Install ruby-prof from gems. Stop any apache/mongrel/nginx instances of puppetmasterd you may have running Edit /usr/sbin/puppetmaste
前回、ruby-profを使ってみたのですが、今回はperftools.rbというプロファイラを使ってみました。 もともと、google-perftoolsというプロファイリングツールがあり、それをRubyで使用できるようにしたのがperftools.rb。現在はCpuProfilerのみですが、TODOにはHeapProfilerと記述されています。 まずはインストール。 gem install -s http://gems.github.com tmm1-perftools.rb サンプルコードで試してみます。 1 2 3 4 5 require 'rubygems' require 'perftools' PerfTools::CpuProfiler.start("/tmp/add_numbers_profile") do 5_000_000.times{ 1+2+3+4+5 } e
THIS IS AN OLD PAGE. GO TO kcachegrind.github.io FOR THE CURRENT VERSION. This is the homepage of the profiling tool Callgrind and the profile data visualization KCachegrind. Both are licensed under GPL V2. Callgrind uses runtime instrumentation via the Valgrind framework for its cache simulation and call-graph generation. This way, even shared libraries and dynamically opened plugins can be profi
Yesterday I mentioned that ruby-prof now supports profiling rails applications. Lets see how that works. But a word of caution before beginning. Like all web applications, Rails apps are complex. They encompass many pieces – clients on remote machines, network connections, any number of application servers and database servers. Getting the whole ensemble to work can be tricky – let alone making it
The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions. What can I do with it? Apache JMeter may be used to test performance both on static and dynamic resources, Web dynamic applications. It can be u
Selenium automates browsers. That's it!What you do with that power is entirely up to you. Primarily it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should) also be automated as well. Selenium WebDriver If you want to create robust, browser-based regression automation suites and tests, scale and di
速さが足りない!!!!! そんな時はプロファイリングの時間ですね。 Rubyには標準添付ライブラリとして profile というプロファイラがついてくる。でもこのライブラリはあまりに遅すぎて実用に耐えないから、多分誰も使っていない。ほとんどのRubyistは ruby-prof を使っていることだろう。 今回はこの ruby-prof を使って Ruby プログラムのプロファイリングする方法を紹介する。 計測する(ruby-prof) ruby-profはrubygemsで簡単に入る。 $ gem install ruby-profruby-profというコマンドラインツールがインストールされる。これを使うと、プログラムを変更することなく手軽にプロファイリングを行うことができる。ruby-profコマンドのusageは以下のとおり。 ruby_prof 0.9.2 Usage: ruby_
gprofの使い方がよくわからないですべての関数が0秒になってしまうことに悩んでいたが、gprofの使い方を間違えているのだと思って調べていたのが間違いだった。gprof bug on Mac OS X?。 で、かわりにSharkを使うという話が書いてあって調べてみたのだけどなかなかよさそう: Optimize with Shark: Big Payoff, Small Effort ついこの前ダウンロードしたXCodeが手元にあったのでそれから入れる。CHUDの中に入っている。 /Developer/Applications/Performance Tools/にインストールされた。 早速試してみた。 turnの中でfreeしているのが一番負担になっているということかな。明示的にfreeはしていないのだけど、ようは自動的に作られている一時オブジェクトが重たいということか。明示的に作ってf
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く