Git Product home page Git Product logo

drupal-sb_stagemarker's Introduction

Stage Marker

This is a left aside module that wants to be released.

Write marks to watchdog or devel's query log at the beginning and end of each run stage of page execution.

This is a suite of three modules that compound a instrument to measure Drupal and help in identifying responsibles of time and memory consumption.

Modules implement hooks that just write marks to devel query log and/or the watchdog.

Additionally a set of patches are provided (see patches/*)) to enable measuring at some internal points where we can't hook and patching is the only option.

Installation

cd sites/all/modules
git clone https://github.com/jonhattan/drupal-sb_stagemarker.git
drush pm-enable sb_stagemarker, sb_stagemarker_before, sb_stagemarker_after

Configuration

Configure devel module to display queries and display time and memory consumption.

Add this to settings.php at your convenience:

// Enable devel query log.
$conf['dev_query'] = 1;
$conf['devel_query_display'] = 1;
$conf['devel_query_sort'] = 0;

// Show time and memory consumption.

$conf['dev_mem'] = 1;
$conf['dev_timer'] = 1;

Additionally, if you plan to apply any of the available patches, add this to settings.php:

require_once 'sites/all/modules/sb_stagemarker/sb_stagemarker.module';

Viewports

  • Devel queries log.
  • drush wd-show --tail

TODO

  • Find the other versions I have of this module and push updates
  • Find a nice name ('instrument'?)
  • Publish to drupal.org

drupal-sb_stagemarker's People

Contributors

jonhattan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

alvar0hurtad0

drupal-sb_stagemarker's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.