Skip to content

Instantly share code, notes, and snippets.

@victorjacobs
Created June 12, 2012 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorjacobs/2915727 to your computer and use it in GitHub Desktop.
Save victorjacobs/2915727 to your computer and use it in GitHub Desktop.
Fishd sample
Sampling process 26166 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling fishd (pid 26166) every 1 millisecond
Process: fishd [26166]
Path: /usr/local/bin/fishd
Load Address: 0x106482000
Identifier: fishd
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Date/Time: 2012-06-12 08:55:39.515 +0200
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 7
Call graph:
2863 Thread_567929 DispatchQueue_1: com.apple.main-thread (serial)
2863 start (in fishd) + 52 [0x106483924]
2863 main (in fishd) + 483 [0x106483b13]
2863 _ZL4initv (in fishd) + 42 [0x106486d3a]
2863 _ZL4loadv (in fishd) + 16 [0x106486d00]
2863 _ZL12load_or_savei (in fishd) + 70 [0x106486606]
2863 _ZL16fishd_get_configv (in fishd) + 849 [0x106486441]
2863 wgettext(wchar_t const*) (in fishd) + 130 [0x106490922]
2863 scoped_lock::scoped_lock(_opaque_pthread_mutex_t&) (in fishd) + 47 [0x1064947c5]
2863 scoped_lock::lock() (in fishd) + 79 [0x1064946ad]
2863 is_forked_child() (in fishd) + 77 [0x1064944ad]
2863 sleep (in libsystem_c.dylib) + 61 [0x7fff8990dc2c]
2863 nanosleep (in libsystem_c.dylib) + 164 [0x7fff8990ddea]
2863 __semwait_signal (in libsystem_kernel.dylib) + 10 [0x7fff95379e42]
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5):
__semwait_signal (in libsystem_kernel.dylib) 2863
Binary Images:
0x106482000 - 0x1064b0ff7 +fishd (??? - ???) <1F29A3C4-7D8A-3B67-89A6-241AE3C78B15> /usr/local/bin/fishd
0x1064d6000 - 0x1065cfff7 +libiconv.2.dylib (8.1.0 - compatibility 8.0.0) <1B8D243B-F617-301E-97B1-EE78A72617AB> /opt/local/lib/libiconv.2.dylib
0x1065dd000 - 0x1065e5ff7 +libintl.8.dylib (10.1.0 - compatibility 10.0.0) <217F6E35-CF03-3224-89D4-8112E0FBE7D5> /opt/local/lib/libintl.8.dylib
0x1065eb000 - 0x106628fff +libncurses.5.dylib (5.0.0 - compatibility 5.0.0) <82EA985A-F944-3672-9A10-72F4A4877B5D> /opt/local/lib/libncurses.5.dylib
0x7fff66082000 - 0x7fff660b6baf dyld (195.6 - ???) <0CD1B35B-A28F-32DA-B72E-452EAD609613> /usr/lib/dyld
0x7fff89909000 - 0x7fff899e6fef libsystem_c.dylib (763.13.0 - compatibility 1.0.0) <41B43515-2806-3FBC-ACF1-A16F35B7E290> /usr/lib/system/libsystem_c.dylib
0x7fff89b40000 - 0x7fff89d42fff libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <38CD6ED3-C8E4-3CCD-89AC-9C3198803101> /usr/lib/libicucore.A.dylib
0x7fff8a1cf000 - 0x7fff8a1ddfff libdispatch.dylib (187.9.0 - compatibility 1.0.0) <1D5BE322-A9B9-3BCE-8FAC-076FB07CF54A> /usr/lib/system/libdispatch.dylib
0x7fff8adc0000 - 0x7fff8adc1ff7 libsystem_sandbox.dylib (??? - ???) <96D38E74-F18F-3CCB-A20B-E8E3ADC4E166> /usr/lib/system/libsystem_sandbox.dylib
0x7fff8add0000 - 0x7fff8adfdfe7 libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <7BEBB139-50BB-3112-947A-F4AA168F991C> /usr/lib/libSystem.B.dylib
0x7fff8adfe000 - 0x7fff8afd2ff7 com.apple.CoreFoundation (6.7.2 - 635.21) <62A3402E-A4E7-391F-AD20-1EF20236CE1B> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8c700000 - 0x7fff8c706ff7 libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
0x7fff8d312000 - 0x7fff8d317fff libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib
0x7fff8d583000 - 0x7fff8d5f6fff libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib
0x7fff8dbe8000 - 0x7fff8dbfaff7 libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib
0x7fff8e45d000 - 0x7fff8e465fff libsystem_dnssd.dylib (??? - ???) <D9BB1F87-A42B-3CBC-9DC2-FC07FCEF0016> /usr/lib/system/libsystem_dnssd.dylib
0x7fff8f267000 - 0x7fff8f270ff7 libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib
0x7fff8f68e000 - 0x7fff8f693ff7 libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib
0x7fff9041c000 - 0x7fff90500e5f libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <871E688B-CF57-3BC7-80D6-F6476DFF109B> /usr/lib/libobjc.A.dylib
0x7fff91de4000 - 0x7fff91de5fff libdnsinfo.dylib (395.11.0 - compatibility 1.0.0) <853BAAA5-270F-3FDC-B025-D448DB72E1C3> /usr/lib/system/libdnsinfo.dylib
0x7fff91de6000 - 0x7fff91de8fff libquarantine.dylib (36.6.0 - compatibility 1.0.0) <0EBF714B-4B69-3E1F-9A7D-6BBC2AACB310> /usr/lib/system/libquarantine.dylib
0x7fff91de9000 - 0x7fff91df0fff libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399> /usr/lib/system/libcopyfile.dylib
0x7fff91ebe000 - 0x7fff91edbfff libxpc.dylib (77.19.0 - compatibility 1.0.0) <9F57891B-D7EF-3050-BEDD-21E7C6668248> /usr/lib/system/libxpc.dylib
0x7fff920d3000 - 0x7fff92115ff7 libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB> /usr/lib/system/libcommonCrypto.dylib
0x7fff92117000 - 0x7fff92121ff7 liblaunch.dylib (392.38.0 - compatibility 1.0.0) <6ECB7F19-B384-32C1-8652-2463C1CF4815> /usr/lib/system/liblaunch.dylib
0x7fff92126000 - 0x7fff92127ff7 libremovefile.dylib (21.1.0 - compatibility 1.0.0) <739E6C83-AA52-3C6C-A680-B37FE2888A04> /usr/lib/system/libremovefile.dylib
0x7fff92208000 - 0x7fff9227efff libc++.1.dylib (28.1.0 - compatibility 1.0.0) <DA22E4D6-7F20-3BEA-9B89-2FBA735C2EE1> /usr/lib/libc++.1.dylib
0x7fff9227f000 - 0x7fff92280fff libunc.dylib (24.0.0 - compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC> /usr/lib/system/libunc.dylib
0x7fff924b1000 - 0x7fff924b2ff7 libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
0x7fff924c7000 - 0x7fff924cbfff libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
0x7fff92e47000 - 0x7fff92e47fff libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
0x7fff92f4f000 - 0x7fff92f55fff libmacho.dylib (800.0.0 - compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC> /usr/lib/system/libmacho.dylib
0x7fff930fa000 - 0x7fff93105ff7 libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib
0x7fff93214000 - 0x7fff93218fff libdyld.dylib (195.5.0 - compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5> /usr/lib/system/libdyld.dylib
0x7fff936d0000 - 0x7fff936d5fff libcache.dylib (47.0.0 - compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527> /usr/lib/system/libcache.dylib
0x7fff95363000 - 0x7fff95383fff libsystem_kernel.dylib (1699.26.8 - compatibility 1.0.0) <1DDC0B0F-DB2A-34D6-895D-E5B2B5618946> /usr/lib/system/libsystem_kernel.dylib
0x7fff9588a000 - 0x7fff958d8fff libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
0x7fff95c88000 - 0x7fff95c89fff libDiagnosticMessagesClient.dylib (??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff95cb1000 - 0x7fff95cecfff libsystem_info.dylib (??? - ???) <35F90252-2AE1-32C5-8D34-782C614D9639> /usr/lib/system/libsystem_info.dylib
Sample analysis of process 26166 written to file /dev/stdout
@catroll
Copy link

catroll commented Dec 26, 2017

Can you tell me how this data from?
I want to learn this skill to debug my code...

@catroll
Copy link

catroll commented Dec 26, 2017

from sample command of Mac OS X?
I'm using Ubuntu, and I can't find any alternatives of sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment