Skip to content

Instantly share code, notes, and snippets.

View balibali's full-sized avatar

Rimpei Ogawa balibali

  • Tejimaya Inc.
  • Tokyo, Japan
View GitHub Profile
@co3k
co3k / inject_associated_revisions_to_ticket_note_list.user.js
Created December 12, 2012 05:54
User script to inject associated revisions to ticket note list on redmine.openpne.jp
// ==UserScript==
// @name inject assosicated revisions to ticket note list
// @namespace co3k.org
// @include https://redmine.openpne.jp/issues/*
// @version 1
// ==/UserScript==
(function(){
var xpathToIssueChangesets = "//*[@id='issue-changesets']/div[contains(@class, 'changeset')]/p/span/a[contains(@href, '/activity?from')]";
var changesets = document.evaluate(xpathToIssueChangesets, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

XHProf 導入

はじめに

PHP アプリのボトルネックの分析に XHProf を使う。

XHProf は PECL 拡張として提供されている。