This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Request.m | |
// IronMon | |
// | |
// Created by Marco Lamina on 29.09.11. | |
// Copyright 2011 __MyCompanyName__. All rights reserved. | |
// | |
#import "Request.h" | |
#import "ASIHTTPRequest.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import HttpResponse | |
from django.http import Http404 | |
from statistics.models import Sysinfo, CPUUsage | |
import json | |
from datetime import datetime | |
import re | |
import pdb | |
class DatetimeFormatter: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createCoreCubes : function(numCores) { | |
// CPU Cubes | |
this._cpuCubes = []; | |
var NUM_CUBES = numCores || CONFIG.nodeCoreCount, | |
NUM_COLS = Math.floor( Math.sqrt( NUM_CUBES ) ), | |
rowcount = 0, | |
GAP_SIZE = (this._width - hana.stats.constants.CUBE_SIZE*NUM_COLS) / (NUM_COLS + 1) ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define ("myapp", ["otherlib"], function(otherlib) { | |
var someDep = otherlib.util.collections, | |
// private properties | |
privateVar = "private", | |
// methods | |
privateMethod = function() { | |
... | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Create a Dictionary mapping the selected package's classes to their dependencies. Code stolen from class DependencyBrowser#computePackageDependencies" | |
| pi classDeps packageDeps pkgName allPackages| | |
Transcript clear. | |
pkgName :='Violoncello-Core'. | |
classDeps := Dictionary new. | |
packageDeps := Dictionary new. | |
allPackages := OrderedCollection new. | |
pkgName ifNil:[^self error: 'No package specified']. | |
pi := PackageOrganizer default packageNamed: pkgName ifAbsent:[^self error: 'Package ',pkgName,' not loaded']. "unloaded" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
findAllClassDependencies | |
| classDeps pi | | |
classDeps := Dictionary new. | |
pi := PackageOrganizer default packageNamed: self package ifAbsent: [^self error: 'Package not loaded']. | |
"find super class references" | |
pi classes do:[:pkgClass| | |
(classDeps at: (pkgClass) name | |
ifAbsentPut:[OrderedCollection new]) add: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open | |
| builder content | | |
builder := UITheme builder. | |
content := builder | |
newColumn: | |
{(builder newText:('Packages of {1}' format: {project})). | |
(builder | |
newListFor: self | |
list: #dependencies | |
selected: #selectedDependency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Clean Pharo 1.4 Image: http://www.pharo-project.org/pharo-download | |
2. Metacello Beta Preview & Cellist installieren: https://gist.github.com/kaihowl/31f0714d8979f03f9c03 | |
3. Klick in World | |
4. "Open Cellist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-04-11T14:18:34.714600+00:00 app[worker.1]: heroku-javaagent: JVM Memory Usage (Heap): used: 247M committed: 349M max:349M | |
2013-04-11T14:18:34.714730+00:00 app[worker.1]: heroku-javaagent: JVM Memory Usage (Non-Heap): used: 33M committed: 33M max:219M | |
2013-04-11T14:18:34.714819+00:00 app[worker.1]: heroku-javaagent: JVM Threads : total: 31 daemon: 20 non-daemon: 2 internal: 9 | |
2013-04-11T14:18:34.909783+00:00 app[web.1]: heroku-javaagent: JVM Memory Usage (Heap): used: 61M committed: 351M max:351M | |
2013-04-11T14:18:34.910116+00:00 app[web.1]: heroku-javaagent: JVM Memory Usage (Non-Heap): used: 37M committed: 37M max:219M | |
2013-04-11T14:18:34.910310+00:00 app[web.1]: heroku-javaagent: JVM Threads : total: 31 daemon: 13 non-daemon: 9 internal: 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download benchmark code: https://github.com/azu-labs/rw-numa-locks/ | |
2. Build the benchmark executables with "make" | |
3. Copy run.sh into the folder with the executables | |
4. (optional) Adjust the parameters in the script | |
5. ./run.sh |
OlderNewer