2017 © Pedro Peláez
 

library myprofi

Analyze your MySQL Slow Query Logfiles

image

marcusschwarz/myprofi

Analyze your MySQL Slow Query Logfiles

  • Tuesday, October 25, 2016
  • by MarcusSchwarz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

MyProfi v1.0.0

MySQL Log Profiler and Analyzer

Build Status, (*1)

MyProfi is mysql profiler and analyzer, which outputs statistics of mostly used queries by reading query log file., (*2)

Originally written 2006 by camka at camka@users.sourceforge.net, (*3)

Usage: php myprofi.php [OPTIONS] INPUTFILE, (*4)

Options:, (*5)

  • top N Output only N top queries., (*6)

  • type "query types" Output only statistics for the queries of given query types. Query types are comma separated words that queries may begin with., (*7)

  • html Output statistics in html format., (*8)

  • sample Output one sample query per each query pattern to be able to use it with EXPLAIN query to analyze its performance., (*9)

  • csv Considers an input file to be in csv format. Note, that if the input file extension is .csv, it is also considered as csv., (*10)

  • slow Treats an input file as a slow query log., (*11)

  • sort <CRITERIA> Sort output statistics by given CRITERIA. Works only for slow query log format.
    Possible values of CRITERIA: qt_total | qt_avg | qt_max | lt_total | lt_avg | lt_max | rs_total | rs_avg | rs_max | re_total | re_avg | re_max, where two-letter prefix stands for "Query time", "Lock time", "Rows sent", "Rows executed".
    Values taken from data provided by slow query log respectively.
    Suffix after _ character tells MyProfi to take total, maximum or average calculated values., (*12)

Example:, (*13)

php parser.php -csv -top 10 -type "select, update" general_log.csv

MyProfi will work with php5.5 and newer., (*14)

Copyright (C) - 2006 camka at camka@users.sourceforge.net - 2016 - Marcus Schwarz github@maswaba.de, (*15)

The Versions

25/10 2016

dev-master

9999999-dev https://github.com/MarcusSchwarz/myprofi

Analyze your MySQL Slow Query Logfiles

  Sources   Download

GPL-3.0

The Requires

  • php >=5.5.0

 

The Development Requires

mysql profiling

20/10 2016

v1.0.0

1.0.0.0 https://github.com/MarcusSchwarz/myprofi

Analyze your MySQL Slow Query Logfiles

  Sources   Download

GPL-3.0

The Requires

  • php >=5.5.0

 

The Development Requires

mysql profiling