SCM

[#1011132] -onlypattern feature

View Trackers | Patches | Download .csv | Monitor

Date:
2011-12-09 14:43
Priority:
3
State:
Open
Submitted by:
Guillaume Luchet (gluchet)
Assigned to:
Nobody (None)
Category:
Group:
Resolution:
None
 
Summary:
-onlypattern feature

Detailed description
I've just added the -onlypattern option allowing to ignore all queries but thoses matching a pattern.

I frequently need stats on only some defined queries, so I add at the beginning of the query something like "/* KEYWORD */ SELECT blah..."

After this I can run pgfouine to get only report on those queries

./pgfouine.php -file /var/log/syslog -onlypattern "/^\/\* KEYWORD/" > output.html

Followup

No Followups Have Been Posted

Attached Files:

Attachments:
pgfouine_add_onlypattern.patch

Changes:

Field Old Value Date By
File Added708: pgfouine_add_onlypattern.patch2011-12-09 14:43gluchet
Powered By FusionForge