Skip to content

Instantly share code, notes, and snippets.

@lericson
Forked from andreif/_main.py
Last active August 29, 2015 14:05
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 lericson/125673e450f6ee050d8e to your computer and use it in GitHub Desktop.
Save lericson/125673e450f6ee050d8e to your computer and use it in GitHub Desktop.
# coding=utf-8
import ctypes
import ctypes.util
from coreaudio import (
AudioObjectPropertyAddress,
kAudioHardwarePropertyDefaultInputDevice,
kAudioObjectPropertyScopeGlobal,
kAudioObjectPropertyElementMaster,
kAudioObjectSystemObject,
AudioDeviceID,
AudioDeviceIOProc,
AudioDeviceIOProcID,
AudioDeviceCreateIOProcID,
AudioDeviceStart,
AudioDeviceStop,
AudioObjectGetPropertyData,
AudioDeviceDestroyIOProcID,
)
@AudioDeviceIOProc
def proc_audio_input(inDevice, inNow, inInputData, inInputTime,
outOutputData, inOutputTime, inClientData):
data = inInputData[0]
for i in xrange(data.mNumberBuffers):
print i, data.mBuffers[i].mDataByteSize
return 0
def GetDefaultInputDevice():
inDevice = AudioDeviceID(0)
thePropSize = ctypes.c_uint32(ctypes.sizeof(AudioDeviceID))
thePropertyAddress = AudioObjectPropertyAddress(
kAudioHardwarePropertyDefaultInputDevice,
kAudioObjectPropertyScopeGlobal,
kAudioObjectPropertyElementMaster,
)
assert not AudioObjectGetPropertyData(
kAudioObjectSystemObject,
ctypes.byref(thePropertyAddress),
0,
None,
ctypes.byref(thePropSize),
ctypes.byref(inDevice)
)
return inDevice
inDevice = GetDefaultInputDevice()
theIOProcID = AudioDeviceIOProcID()
# void* inClientData = (float *)malloc(sizeof(float) * 4096);
out = ctypes.create_string_buffer(ctypes.sizeof(ctypes.c_float) * 4096)
inClientData = ctypes.cast(out, ctypes.c_char_p)
assert not AudioDeviceCreateIOProcID(inDevice, proc_audio_input,
ctypes.byref(inClientData),
ctypes.byref(theIOProcID))
print 'theIOProcID =', theIOProcID
assert not AudioDeviceStart(inDevice, theIOProcID)
print 'started'
try:
while 1:
pass
except (KeyboardInterrupt, SystemExit):
pass
finally:
print 'boom'
assert not AudioDeviceStop(inDevice, theIOProcID)
assert not AudioDeviceDestroyIOProcID(inDevice, theIOProcID)
# coding=utf-8
import ctypes
import ctypes.util
CoreAudio = ctypes.cdll.LoadLibrary(ctypes.util.find_library('AudioToolbox'))
bytes2int = lambda s: int(s.encode('hex'), 16)
OSStatus = ctypes.c_int32
kAudioObjectSystemObject = 1
kAudioHardwarePropertyDefaultInputDevice = bytes2int('dIn ')
kAudioHardwarePropertyDefaultOutputDevice = bytes2int('dOut')
kAudioObjectPropertyScopeGlobal = bytes2int('glob')
kAudioObjectPropertyElementMaster = 0
AudioObjectPropertySelector = ctypes.c_uint32
AudioObjectPropertyScope = ctypes.c_uint32
AudioObjectPropertyElement = ctypes.c_uint32
AudioObjectID = ctypes.c_uint32
AudioDeviceID = AudioObjectID
class AudioObjectPropertyAddress(ctypes.Structure):
_fields_ = [
('mSelector', AudioObjectPropertySelector),
('mScope', AudioObjectPropertyScope),
('mElement', AudioObjectPropertyElement),
]
class AudioStreamBasicDescription(ctypes.Structure):
_fields_ = [
('mSampleRate', ctypes.c_double),
('mFormatID', ctypes.c_uint),
('mFormatFlags', ctypes.c_uint),
('mBytesPerPacket', ctypes.c_uint),
('mFramesPerPacket', ctypes.c_uint),
('mBytesPerFrame', ctypes.c_uint),
('mChannelsPerFrame', ctypes.c_uint),
('mBitsPerChannel', ctypes.c_uint),
('mReserved', ctypes.c_uint),
]
class AudioBuffer(ctypes.Structure):
_fields_ = [
('mNumberChannels', ctypes.c_uint),
('mDataByteSize', ctypes.c_uint),
('mData', ctypes.c_void_p),
]
class AudioBufferList(ctypes.Structure):
_fields_ = [
('mNumberBuffers', ctypes.c_uint),
('mBuffers', AudioBuffer * 1),
]
# typedef OSStatus
# (*AudioDeviceIOProc)( AudioObjectID inDevice,
# const AudioTimeStamp* inNow,
# const AudioBufferList* inInputData,
# const AudioTimeStamp* inInputTime,
# AudioBufferList* outOutputData,
# const AudioTimeStamp* inOutputTime,
# void* inClientData);
AudioDeviceIOProc = ctypes.CFUNCTYPE(
OSStatus, # result type
AudioObjectID, # AudioObjectID inDevice,
ctypes.c_void_p, # const AudioTimeStamp* inNow,
ctypes.POINTER(AudioBufferList), # const AudioBufferList* inInputData,
ctypes.c_void_p, # const AudioTimeStamp* inInputTime,
ctypes.c_void_p, # AudioBufferList* outOutputData,
ctypes.c_void_p, # const AudioTimeStamp* inOutputTime,
ctypes.c_void_p, # void* inClientData
)
AudioDeviceIOProcID = AudioDeviceIOProc
def define(name, restype, argtypes):
f = getattr(CoreAudio, name)
f.restype = restype
f.argtypes = argtypes
return f
# extern OSStatus
# AudioObjectGetPropertyData( AudioObjectID inObjectID,
# const AudioObjectPropertyAddress* inAddress,
# UInt32 inQualifierDataSize,
# const void* inQualifierData,
# UInt32* ioDataSize,
# void* outData)
AudioObjectGetPropertyData = define('AudioObjectGetPropertyData', restype=OSStatus, argtypes=(
AudioObjectID, # inObjectID
ctypes.POINTER(AudioObjectPropertyAddress), # inAddress
ctypes.c_uint32, # inQualifierDataSize
ctypes.c_void_p, # inQualifierData
ctypes.POINTER(ctypes.c_uint32), # ioDataSize
ctypes.c_void_p, # outData
))
# extern OSStatus
# AudioDeviceCreateIOProcID( AudioObjectID inDevice,
# AudioDeviceIOProc inProc,
# void* inClientData,
# AudioDeviceIOProcID* outIOProcID)
AudioDeviceCreateIOProcID = define('AudioDeviceCreateIOProcID', restype=OSStatus, argtypes=(
AudioObjectID,
AudioDeviceIOProc,
ctypes.c_void_p,
ctypes.POINTER(AudioDeviceIOProcID),
))
# extern OSStatus
# AudioDeviceStart( AudioObjectID inDevice,
# AudioDeviceIOProcID inProcID)
AudioDeviceStart = define('AudioDeviceStart',
restype=OSStatus, argtypes=(AudioObjectID, AudioDeviceIOProcID))
AudioDeviceStop = define('AudioDeviceStop',
restype=OSStatus, argtypes=(AudioObjectID, AudioDeviceIOProcID))
AudioDeviceDestroyIOProcID = define('AudioDeviceDestroyIOProcID',
restype=OSStatus, argtypes=(AudioObjectID, AudioDeviceIOProcID))
#include <CoreAudio/CoreAudio.h>
static OSStatus recordAudioProc(
AudioDeviceID inDevice,
const AudioTimeStamp* inNow,
const AudioBufferList* inInputData,
const AudioTimeStamp* inInputTime,
AudioBufferList* outOutputData,
const AudioTimeStamp* inOutputTime,
void* inClientData)
{
unsigned byteCount = inInputData->mBuffers[0].mDataByteSize;
float *samples = (float*)inInputData->mBuffers[0].mData;
write(1, samples, byteCount);
return 0;
}
AudioDeviceID GetDefaultInputDevice()
{
AudioDeviceID inDevice = 0;
UInt32 theSize = sizeof(AudioDeviceID);
AudioObjectPropertyAddress theAddress = {
kAudioHardwarePropertyDefaultInputDevice,
kAudioObjectPropertyScopeGlobal,
kAudioObjectPropertyElementMaster};
OSStatus theError = AudioObjectGetPropertyData(
kAudioObjectSystemObject,
&theAddress,
0,
NULL,
&theSize,
&inDevice);
// handle errors
return inDevice;
}
int main(int argc, char *argv[])
{
AudioDeviceID inDevice = GetDefaultInputDevice();
void* inClientData = (float *)malloc(sizeof(float) * 4096);
// register the IOProc
AudioDeviceIOProcID theIOProcID = NULL;
OSStatus theError = AudioDeviceCreateIOProcID(inDevice, recordAudioProc, inClientData, &theIOProcID);
// TODO: handle errors
// TODO: ensure theIOProcID != NULL
// start IO
theError = AudioDeviceStart(inDevice, theIOProcID);
if (argc > 1) {
sleep(strtoumax(argv[1], NULL, 10));
} else {
while (1) sleep(5);
}
// stop IO
theError = AudioDeviceStop(inDevice, theIOProcID);
// unregister the IOProc
theError = AudioDeviceDestroyIOProcID(inDevice, theIOProcID);
return 0;
}
Process: python [82375]
Path: /Users/USER/*/python
Identifier: python
Version: ???
Code Type: X86-64 (Native)
Parent Process: pycharm [2349]
Responsible: pycharm [2349]
User ID: 501
Date/Time: 2014-08-15 16:21:21.368 +0200
OS Version: Mac OS X 10.9.2 (13C1021)
Report Version: 11
Anonymous UUID: AF1A2E40-6294-2DB7-213C-6A7FD764D5AD
Sleep/Wake UUID: 81FDECCE-7EB3-4574-80BC-7AD26E48FBC3
Crashed Thread: 4 com.apple.audio.IOThread.client
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000100489580
VM Regions Near 0x100489580:
__LINKEDIT 0000000100459000-0000000100465000 [ 48K] r--/rwx SM=COW /Users/USER/*/*.so
--> MALLOC_LARGE 0000000100465000-00000001004a5000 [ 256K] rw-/rwx SM=COW
__TEXT 00000001004a5000-00000001004a8000 [ 12K] r-x/rwx SM=COW /Users/USER/*/*.so
Thread 0:: Dispatch queue: com.apple.main-thread
0 python 0x00000001000a2ca9 PyEval_EvalFrameEx + 26505
1 python 0x00000001000a3e37 PyEval_EvalCodeEx + 2103
2 python 0x00000001000a3eb6 PyEval_EvalCode + 54
3 python 0x00000001000c1f24 PyRun_FileExFlags + 164
4 python 0x00000001000c3209 PyRun_SimpleFileExFlags + 409
5 python 0x00000001000d657a Py_Main + 2890
6 python 0x000000010000184a _start + 248
7 python 0x0000000100001751 start + 33
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff9785c662 kevent64 + 10
1 libdispatch.dylib 0x00007fff8e73043d _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff8e730152 _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff9785be6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff92893f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff92896fb9 start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff9785be6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff92893f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff92896fb9 start_wqthread + 13
Thread 4 Crashed:: com.apple.audio.IOThread.client
0 ??? 0x0000000100489580 0 + 4299724160
1 com.apple.audio.CoreAudio 0x00007fff9326fbcd HALC_ProxyIOContext::IOThreadEntry(void*) + 97
2 com.apple.audio.CoreAudio 0x00007fff9326fa8d HALB_IOThread::Entry(void*) + 75
3 libsystem_pthread.dylib 0x00007fff92892899 _pthread_body + 138
4 libsystem_pthread.dylib 0x00007fff9289272a _pthread_start + 137
5 libsystem_pthread.dylib 0x00007fff92896fc9 thread_start + 13
Thread 4 crashed with X86 Thread State (64-bit):
rax: 0x00000001004697f0 rbx: 0x00000001004d5000 rcx: 0x00000001004d50a0 rdx: 0x00000001005155b0
rdi: 0x000000000000002f rsi: 0x00000001004d5060 rbp: 0x00000001031c6e90 rsp: 0x00000001031c6d08
r8: 0x0000000100515590 r9: 0x00000001004d50e0 r10: 0x0000000100489580 r11: 0x0000000000000206
r12: 0x0000000100376a70 r13: 0x0000000100376820 r14: 0x8000000000000000 r15: 0x0000000100376820
rip: 0x0000000100489580 rfl: 0x0000000000010202 cr2: 0x0000000100489580
Logical CPU: 0
Error Code: 0x00000015
Trap Number: 14
Binary Images:
0x100000000 - 0x10013afff +python (???) <7D736753-4B55-3F93-A1E3-07551E83D753> /Users/USER/*/python
0x1002e1000 - 0x1002e5ff7 +_struct.so (???) <31B09176-D319-346B-81FB-960902149BA2> /Users/USER/*/_struct.so
0x1002ed000 - 0x1002f3ff7 +itertools.so (???) <C73C01B6-8908-3852-8A99-FC5AA7E6262C> /Users/USER/*/itertools.so
0x100440000 - 0x100454fff +_ctypes.so (???) <EC7CE28A-6B60-371D-8DA7-5C1C920D2499> /Users/USER/*/_ctypes.so
0x1004a5000 - 0x1004a7fff +binascii.so (???) <3E1F8122-A010-31DB-9E9D-55C745E3ED50> /Users/USER/*/binascii.so
0x1004c1000 - 0x1004c5ffd com.apple.audio.AppleHDAHALPlugIn (2.6.0 - 2.6.0f1) <82D2F703-F961-3298-B06F-14B772D23C7B> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
0x7fff632c6000 - 0x7fff632f9817 dyld (239.4) <2B17750C-ED1B-3060-B64E-21897D08B28B> /usr/lib/dyld
0x7fff8b726000 - 0x7fff8b896ff4 com.apple.CFNetwork (673.4 - 673.4) <F3BF6020-99BE-3844-A7B8-352B93AD02F3> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff8bb97000 - 0x7fff8bb9eff3 libcopyfile.dylib (103) <5A881779-D0D6-3029-B371-E3021C2DDA5E> /usr/lib/system/libcopyfile.dylib
0x7fff8bbd4000 - 0x7fff8bbd5fff libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
0x7fff8c4ee000 - 0x7fff8c4f4ff7 libsystem_platform.dylib (24.90.1) <3C3D3DA8-32B9-3243-98EC-D89B9A1670B3> /usr/lib/system/libsystem_platform.dylib
0x7fff8c667000 - 0x7fff8c6a9ff7 libauto.dylib (185.5) <F45C36E8-B606-3886-B5B1-B6745E757CA8> /usr/lib/libauto.dylib
0x7fff8c852000 - 0x7fff8c853fff liblangid.dylib (117) <9546E641-F730-3AB0-B3CD-E0E2FDD173D9> /usr/lib/liblangid.dylib
0x7fff8c854000 - 0x7fff8c85efff libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
0x7fff8c85f000 - 0x7fff8c86cff0 libbz2.1.0.dylib (29) <0B98AC35-B138-349C-8063-2B987A75D24C> /usr/lib/libbz2.1.0.dylib
0x7fff8c879000 - 0x7fff8c87efff libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
0x7fff8c8f4000 - 0x7fff8c90fff7 libCRFSuite.dylib (34) <FFAE75FA-C54E-398B-AA97-18164CD9789D> /usr/lib/libCRFSuite.dylib
0x7fff8cd46000 - 0x7fff8cd51fff libkxld.dylib (2422.92.1) <A7DFFC8C-45EE-3525-A961-EF93C2FB1340> /usr/lib/system/libkxld.dylib
0x7fff8cd52000 - 0x7fff8d026fc7 com.apple.vImage (7.0 - 7.0) <D241DBFA-AC49-31E2-893D-EAAC31890C90> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff8dc0d000 - 0x7fff8dc12ff7 libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
0x7fff8dc13000 - 0x7fff8dc3cfff com.apple.DictionaryServices (1.2 - 208) <A539A058-BA57-35EE-AA08-D0B0E835127D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x7fff8dfd8000 - 0x7fff8e088ff7 libvMisc.dylib (423.32) <049C0735-1808-39B9-943F-76CB8021744F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x7fff8e08b000 - 0x7fff8e0a6ff7 libsystem_malloc.dylib (23.10.1) <A695B4E4-38E9-332E-A772-29D31E3F1385> /usr/lib/system/libsystem_malloc.dylib
0x7fff8e130000 - 0x7fff8e17efff libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
0x7fff8e3d0000 - 0x7fff8e434fff com.apple.datadetectorscore (5.0 - 354.3) <B92E87D1-2045-3AB2-AE3F-8F948B30518A> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x7fff8e483000 - 0x7fff8e4aaff7 libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
0x7fff8e4c2000 - 0x7fff8e615ff7 com.apple.audio.toolbox.AudioToolbox (1.10 - 1.10) <3511ABFE-22E1-3B91-B86A-5E3A78CE33FD> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff8e72d000 - 0x7fff8e747fff libdispatch.dylib (339.90.1) <F3CBFE1B-FCE8-3F33-A53D-9092AB382DBB> /usr/lib/system/libdispatch.dylib
0x7fff8e77a000 - 0x7fff8e77bff7 libsystem_blocks.dylib (63) <FB856CD1-2AEA-3907-8E9B-1E54B6827F82> /usr/lib/system/libsystem_blocks.dylib
0x7fff8f973000 - 0x7fff8f99bffb libxslt.1.dylib (13) <C9794936-633C-3F0C-9E71-30190B9B41C1> /usr/lib/libxslt.1.dylib
0x7fff8fa48000 - 0x7fff8fab2ff7 com.apple.framework.IOKit (2.0.1 - 907.90.2) <A779DE46-BB7E-36FD-9348-694F9B09718F> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff8fc07000 - 0x7fff8fc7efff com.apple.CoreServices.OSServices (600.4 - 600.4) <36B2B009-C35E-3F21-824E-E0D00E7808C7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x7fff91058000 - 0x7fff91058fff com.apple.CoreServices (59 - 59) <7A697B5E-F179-30DF-93F2-8B503CEEEFD5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff91068000 - 0x7fff910f8fff com.apple.Metadata (10.7.0 - 800.23) <BFEE576F-D779-300B-B685-26A3A008710A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x7fff91113000 - 0x7fff911dcfff com.apple.LaunchServices (572.26 - 572.26) <EF8A4A15-0861-35C5-9744-5E1BC5C26DD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x7fff9144c000 - 0x7fff9147bfd2 libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib
0x7fff9147c000 - 0x7fff91661fff com.apple.CoreFoundation (6.9 - 855.16) <A63E680E-E4B2-368B-8564-9DBE0D8DDB91> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff91662000 - 0x7fff91663ff7 libSystem.B.dylib (1197.1.1) <BFC0DC97-46C6-3BE0-9983-54A98734897A> /usr/lib/libSystem.B.dylib
0x7fff91ab1000 - 0x7fff91b0cffb com.apple.AE (665.5 - 665.5) <BBA230F9-144C-3CAB-A77A-0621719244CD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x7fff91daf000 - 0x7fff91dafffd libOpenScriptingUtil.dylib (157) <19F0E769-0989-3062-9AFB-8976E90E9759> /usr/lib/libOpenScriptingUtil.dylib
0x7fff925f5000 - 0x7fff92763ff7 libBLAS.dylib (1094.5) <DE93A590-5FA5-32A2-A16C-5D7D7361769F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff92764000 - 0x7fff9284bff7 libxml2.2.dylib (26) <A1DADD11-89E5-3DE4-8802-07186225967F> /usr/lib/libxml2.2.dylib
0x7fff9284c000 - 0x7fff92854fff libsystem_dnssd.dylib (522.90.2) <A0B7CF19-D9F2-33D4-8107-A62184C9066E> /usr/lib/system/libsystem_dnssd.dylib
0x7fff92891000 - 0x7fff92898ff7 libsystem_pthread.dylib (53.1.4) <AB498556-B555-310E-9041-F67EC9E00E2C> /usr/lib/system/libsystem_pthread.dylib
0x7fff92899000 - 0x7fff92899fff com.apple.Accelerate (1.9 - Accelerate 1.9) <509BB27A-AE62-366D-86D8-0B06D217CF56> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff92c7b000 - 0x7fff92d04ff7 libsystem_c.dylib (997.90.3) <6FD3A400-4BB2-3B95-B90C-BE6E9D0D78FA> /usr/lib/system/libsystem_c.dylib
0x7fff92d68000 - 0x7fff92f20ff3 libicucore.A.dylib (511.31) <167DDD0A-A935-31AF-B5B9-940268EC3A3C> /usr/lib/libicucore.A.dylib
0x7fff92f4f000 - 0x7fff92f76ffb libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
0x7fff92fa9000 - 0x7fff92fb9fff libbsm.0.dylib (33) <2CAC00A2-1352-302A-88FA-C567D4D69179> /usr/lib/libbsm.0.dylib
0x7fff92fba000 - 0x7fff92fbaff7 libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
0x7fff92fbb000 - 0x7fff92fbcffb libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
0x7fff930c8000 - 0x7fff930ccff7 libsystem_stats.dylib (93.90.3) <1A55AF8A-B6C4-3163-B557-3AD25DA643A8> /usr/lib/system/libsystem_stats.dylib
0x7fff93249000 - 0x7fff9329aff3 com.apple.audio.CoreAudio (4.2.0 - 4.2.0) <BF4C2FE3-8BC8-30D1-8347-2A7221268794> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff93a3d000 - 0x7fff93a44fff com.apple.NetFS (6.0 - 4.0) <8E26C099-CE9D-3819-91A2-64EA929C6137> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff94db7000 - 0x7fff94dc1ff7 com.apple.bsd.ServiceManagement (2.0 - 2.0) <2D27B498-BB9C-3D88-B05A-76908A8A26F3> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x7fff95092000 - 0x7fff95096fff libpam.2.dylib (20) <B93CE8F5-DAA8-30A1-B1F6-F890509513CB> /usr/lib/libpam.2.dylib
0x7fff9509b000 - 0x7fff950bffff libxpc.dylib (300.90.2) <AB40CD57-F454-3FD4-B415-63B3C0D5C624> /usr/lib/system/libxpc.dylib
0x7fff950c0000 - 0x7fff950c2ff7 libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
0x7fff955de000 - 0x7fff9564bfff com.apple.SearchKit (1.4.0 - 1.4.0) <B9B8D510-A27E-36B0-93E9-17146D9E9045> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x7fff9565c000 - 0x7fff95746fff libsqlite3.dylib (158) <00269BF9-43BE-39E0-9C85-24585B9923C8> /usr/lib/libsqlite3.dylib
0x7fff95747000 - 0x7fff95758ff7 libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
0x7fff957f2000 - 0x7fff957f6ff7 libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
0x7fff95913000 - 0x7fff95965fff libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
0x7fff95b0a000 - 0x7fff95b0afff com.apple.Accelerate.vecLib (3.9 - vecLib 3.9) <F8D0CC77-98AC-3B58-9FE6-0C25421827B6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff95c5d000 - 0x7fff95eb6ff9 com.apple.security (7.0 - 55471.14.1) <FF57C9BB-4E52-33E5-8927-59AEADB6CA27> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff95ef1000 - 0x7fff95ef6fff com.apple.DiskArbitration (2.6 - 2.6) <A4165553-770E-3D27-B217-01FC1F852B87> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff95ef7000 - 0x7fff95efaff7 libdyld.dylib (239.4) <CF03004F-58E4-3BB6-B3FD-BE4E05F128A0> /usr/lib/system/libdyld.dylib
0x7fff95f05000 - 0x7fff95f0cff8 liblaunch.dylib (842.90.1) <38D1AB2C-A476-385F-8EA8-7AB604CA1F89> /usr/lib/system/liblaunch.dylib
0x7fff95f17000 - 0x7fff95f20ff3 libsystem_notify.dylib (121) <52571EC3-6894-37E4-946E-064B021ED44E> /usr/lib/system/libsystem_notify.dylib
0x7fff96029000 - 0x7fff96313fff com.apple.CoreServices.CarbonCore (1077.17 - 1077.17) <3A2E92FD-DEE2-3D45-9619-11500801A61C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff96784000 - 0x7fff96931f27 libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
0x7fff96932000 - 0x7fff9695bff7 libc++abi.dylib (49.1) <21A807D3-6732-3455-B77F-743E9F916DF0> /usr/lib/libc++abi.dylib
0x7fff9695c000 - 0x7fff96a27fff libvDSP.dylib (423.32) <3BF732BE-DDE0-38EB-8C54-E4E3C64F77A7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x7fff96afa000 - 0x7fff96afbff7 libsystem_sandbox.dylib (278.11) <5E5A6E09-33A9-391A-AB34-E57D93BB1551> /usr/lib/system/libsystem_sandbox.dylib
0x7fff96afc000 - 0x7fff96eddffe libLAPACK.dylib (1094.5) <7E7A9B8D-1638-3914-BAE0-663B69865986> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x7fff97013000 - 0x7fff9701afff libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
0x7fff9718c000 - 0x7fff9718dff7 libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff974c6000 - 0x7fff977c4fff com.apple.Foundation (6.9 - 1056.13) <2EE9AB07-3EA0-37D3-B407-4A520F2CB497> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff977c5000 - 0x7fff977c7ff3 libsystem_configuration.dylib (596.13) <B51C8C22-C455-36AC-952D-A319B6545884> /usr/lib/system/libsystem_configuration.dylib
0x7fff9783c000 - 0x7fff9783ffff com.apple.TCC (1.0 - 1) <32A075D9-47FD-3E71-95BC-BFB0D583F41C> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff97846000 - 0x7fff97862ff7 libsystem_kernel.dylib (2422.92.1) <3F649963-7FA1-3201-8FF6-8438A52B9973> /usr/lib/system/libsystem_kernel.dylib
0x7fff978ae000 - 0x7fff978b9ff7 com.apple.NetAuth (5.0 - 5.0) <C811E662-9EC3-3B74-808A-A75D624F326B> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x7fff986ed000 - 0x7fff98704ff7 com.apple.CFOpenDirectory (10.9 - 173.90.1) <38A25261-C622-3F11-BFD3-7AFFC44D57B8> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x7fff987f2000 - 0x7fff98855ff7 com.apple.SystemConfiguration (1.13 - 1.13) <63B985ED-E7E4-3095-8D12-63C9F1DB0F3D> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff98bc1000 - 0x7fff98bceff7 libxar.1.dylib (202) <5572AA71-E98D-3FE1-9402-BB4A84E0E71E> /usr/lib/libxar.1.dylib
0x7fff98bcf000 - 0x7fff98be0ff7 libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 187124
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=103.7M resident=16.7M(16%) swapped_out_or_unallocated=87.0M(84%)
Writable regions: Total=55.4M written=1932K(3%) resident=2860K(5%) swapped_out=0K(0%) unallocated=52.6M(95%)
REGION TYPE VIRTUAL
=========== =======
Dispatch continuations 8192K
Kernel Alloc Once 4K
MALLOC 37.4M
MALLOC (admin) 16K
STACK GUARD 56.0M
Stack 9824K
VM_ALLOCATE 380K
VM_ALLOCATE (reserved) 40K reserved VM address space (unallocated)
__DATA 3596K
__LINKEDIT 66.1M
__TEXT 37.6M
__UNICODE 544K
shared memory 4K
=========== =======
TOTAL 219.2M
TOTAL, minus reserved VM space 219.1M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment