Skip to content

Instantly share code, notes, and snippets.

View joelreymont's full-sized avatar

Joel Reymont joelreymont

View GitHub Profile
sync && purge
DYLD_PRINT_STATISTICS=1 DYLD_PRINT_INITIALIZERS=1 DYLD_PRINT_LIBRARIES_POST_LAUNCH=1 /tmp/Minefield.app/Contents/MacOS/firefox-bin -no-remote -foreground -P 1
dyld: calling initializer function 0x9736e0c0 in /usr/lib/libSystem.B.dylib
dyld: calling initializer function 0x929c0172 in /usr/lib/libstdc++.6.dylib
dyld: calling initializer function 0x929c018c in /usr/lib/libstdc++.6.dylib
dyld: calling initializer function 0x929c0198 in /usr/lib/libstdc++.6.dylib
dyld: calling initializer function 0x929c02d8 in /usr/lib/libstdc++.6.dylib
dyld: calling initializer function 0x929c0426 in /usr/lib/libstdc++.6.dylib
dyld: calling initializer function 0x92d010dd in /usr/lib/libobjc.A.dylib
./cold.sh iosum.d
DELTA DTIME SIZE D PATHNAME
309 313 4096 R ??/en_US.ISO8859-1/LC_TIME
442 446 4096 R ??/pref/firefox-branding.js
443 448 4096 R ??/su3x40q6.2/extensions.cache
446 450 4096 R ??/en_US.ISO8859-1/LC_NUMERIC
509 518 4096 R ??/su3x40q6.2/content-prefs.sqlite
544 548 20480 R ??/Fonts/AlBayan.ttf
606 610 28672 R ??/Fonts/Nadeem.ttf
DELTA DTIME D SIZE PATHNAME
444 452 R 4096 ??/dtrace/libdtrace_dyld.dylib
990 1027 R 4096 ??/MacOS/libxpcom.dylib
1479 456 R 4096 ??/MacOS/libxpcom.dylib
1127 1131 R 4096 ??/MacOS/libplds4.dylib
958 994 R 4096 ??/MacOS/libplds4.dylib
1671 680 R 4096 ??/MacOS/libplds4.dylib
2181 676 R 4096 ??/MacOS/libplc4.dylib
630 634 R 4096 ??/MacOS/libplc4.dylib
665 669 R 4096 ??/MacOS/libnspr4.dylib
DELTA DTIME D SIZE PATHNAME
2146 2150 R 65536 ??/dyld/dyld_shared_cache_i386
2244 2248 R 65536 ??/dyld/dyld_shared_cache_i386
1871 1874 R 65536 ??/dyld/dyld_shared_cache_i386
1753 1756 R 4096 ??/A/SyndicationUI
2044 2048 R 36864 ??/A/SyndicationUI
1628 1632 R 8192 ??/A/SyndicationUI
2267 673 R 4096 ??/A/SyndicationUI
3167 480 R 8192 ??/A/SyndicationUI
5451 2512 R 65536 ??/dyld/dyld_shared_cache_i386
./d firefox-bin autosave.d
dtrace -Zqw -x dynvarsize=64m -x evaltime=preinit -p 1527 -s autosave.d -s sigcont.d
kill -CONT 1527
arg0: 0x90, arg1: 0x1a71da8
XUL`gfxContextAutoSaveRestore::Reset(gfxContext*)+0x90
XUL`gfxImageSurface::Height() const+0x2d976
XUL`gfxImageSurface::Height() const+0x135b6
XUL`gfxImageSurface::Height() const+0x107b7
XUL`non-virtual thunk to nsPrintSession::QueryInterface(nsID const&, void**)+0x53d16
XUL`nsFrame::BoxReflow(nsBoxLayoutState&, nsPresContext*, nsHTMLReflowMetrics&, nsIRenderingContext*, int, int, int, int, int)+0x3d5
XUL`nsFrame::DoLayout(nsBoxLayoutState&)+0xf8
XUL`nsIFrame::Layout(nsBoxLayoutState&)+0x2f
XUL`nsSprocketLayout::Layout(nsIFrame*, nsBoxLayoutState&)+0xbed
XUL`nsBoxFrame::DoLayout(nsBoxLayoutState&)+0x35
XUL`nsIFrame::Layout(nsBoxLayoutState&)+0x2f
XUL`nsStackLayout::Layout(nsIFrame*, nsBoxLayoutState&)+0x2a9
XUL`nsBoxFrame::DoLayout(nsBoxLayoutState&)+0x35
XUL`nsIFrame::Layout(nsBoxLayoutState&)+0x2f
XUL`nsBoxFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&)+0xff
biggie:startup joelr$ ./d firefox-bin iframe-layout.d stop-20s.d
dtrace -Zqw -x dynvarsize=64m -x evaltime=exec -p 57273 -s iframe-layout.d -s stop-20s.d -s sigcont.d
XUL`nsIFrame::Layout(nsBoxLayoutState&)+0x44
XUL`nsSprocketLayout::Layout(nsIFrame*, nsBoxLayoutState&)+0xbed
XUL`nsBoxFrame::DoLayout(nsBoxLayoutState&)+0x35
XUL`nsIFrame::Layout(nsBoxLayoutState&)+0x2f
XUL`nsStackLayout::Layout(nsIFrame*, nsBoxLayoutState&)+0x2a9
XUL`nsBoxFrame::DoLayout(nsBoxLayoutState&)+0x35
XUL`nsIFrame::Layout(nsBoxLayoutState&)+0x2f
git diff
diff --git a/dulwich/objects.py b/dulwich/objects.py
index bd70800..d901825 100644
--- a/dulwich/objects.py
+++ b/dulwich/objects.py
@@ -561,6 +561,17 @@ class Commit(ShaFile):
assert text[count] == ' ', "Invalid commit object, " \
"author information must be followed by space not %s" % text[c
count += 1
+ # Tyler (tyler@christianlink.us> <none@none> 1222014536 +0200
(defun blend (pane target-file source-file mask-file)
(let* ((source (gp:load-image pane source-file :cache t))
(target (gp:load-image pane target-file :cache t))
(mask (gp:load-image pane mask-file :cache t))
(source-access (gp:make-image-access pane source))
(target-access (gp:make-image-access pane target))
(mask-access (gp:make-image-access pane mask)))
(unwind-protect
(progn
(defun cocoa-get-image-bytes (image)
(let ((bitmap (objc:invoke
(objc:invoke "NSBitmapImageRep" "alloc")
"initWithData:"
(objc:invoke image "TIFFRepresentation"))))
(if bitmap
(let ((data (objc:invoke-into
'(:pointer (:unsigned :char))
bitmap "bitmapData")))
(values bitmap data))