db.system.profile.find();
Profiling Levelsの設定次第ですが、スロークエリーがdb.system.profile
に格納されているので、ここから探す。
ただ、明らかにスロークエリーなはずのaggregate()
で発行したクエリーが、何故かここから見つけられなかったので、もしかしたらAggregation Frameworkのクエリーはここには入らないのかもしれない。
#!/bin/sh | |
echo "\$ echo \$(pwd)" | |
echo $(pwd) #Current directory not changed. | |
echo "\$ \$(cd ..)" | |
$(cd ..) | |
echo "\$ echo \$(pwd)" | |
echo $(pwd) #Current directory not changed. |
using UnityEditor; | |
using UnityEditorInternal; | |
namespace Kanonji.TagManagerEvent | |
{ | |
public delegate void OnTagsChangedHandler(string[] tags); | |
public class Publisher | |
{ | |
public static event OnTagsChangedHandler OnTagsChanged; |
<?php | |
trait ConstMapTrait{ | |
private static $const_map = []; | |
public static function const_map($prefix = 0){ | |
if(! isset(self::$const_map[$prefix])){ | |
if(0 === $prefix){ | |
self::$const_map[$prefix] = (new \ReflectionClass(get_called_class()))->getConstants(); | |
} else { | |
self::const_map(); | |
$list = self::$const_map[0]; |
var tag_helpers = { | |
relative_path: function(basePath) { // I want basePath in this scope. | |
var pathDepth = basePath.split('/').length -2; | |
var path = new Array(pathDepth + 1).join('../'); | |
return path; | |
} | |
}; | |
module.exports = { | |
get: function(basePath, file_extension, options, callback){ |
bzip2: tar.bz2の展開に必要
gcc
make
libdb-dev: _bsddbモジュール(python3には無い)に必要
libreadline-dev: _curses、_curses_panel、readlineモジュールに必要
libsqlite3-dev: _sqlite3モジュールに必要
libssl-dev: _sslモジュールに必要(zlibモジュールに必要なzlib1g-devも依存関係でインストールされる)
tk-dev: _tkinterモジュールに必要
libbz2-dev: bz2モジュールに必要
Compare and Swap
use feature qw/say/; | |
use Encode; | |
use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); #http://memememomo.hatenablog.com/entry/20100422/1271894685 | |
use XML::Simple; | |
use Tie::IxHash; #http://blog.dealforest.net/2009/09/xml-parse-in-order/ | |
use Path::Class; | |
use HTML::TreeBuilder::XPath; #http://blog.64p.org/entry/20100607/1275878274 | |
use HTML::Selector::XPath 'selector_to_xpath'; |
port "6600" | |
playlist_directory "~/.mpd/playlists" | |
music_directory "~/.mpd/music" | |
db_file "~/.mpd/mpd.db" | |
log_file "~/.mpd/mpd.log" | |
pid_file "~/.mpd/pid" | |
state_file "~/.mpd/state" | |
#bind_to_address "127.0.0.1" #does not work | |
bind_to_address "0.0.0.0" | |
#bind_to_address "any" #does not work |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Archive::Zip; | |
use Encode; | |
if (@ARGV == 0) { | |
die "usage: $0 ZIPFILE\n"; | |
} |