Here is my first attempt to profile LyX-140 on Mac -- without really knowing what I'm doing or what language to use in describing it.

I quit all applications other than Shark and LyX-140, and ran a time profile on all processes for 30 seconds (LyX represented 88.7% of the total). During that time, I typed into a long-ish document in LyX.

The result is a 2.8 MB file, of which the following is a compact summary of samples representing >.1%; let me know if I should be doing something different or if you want more information on one or more of these lines. (I can post the whole file to a server here, though it's not readable by a text editor.)

Bennett


5.5% 5.5% mach_kernel machine_idle_ret
4.0% 4.0% CoreGraphics vecCGSColorDeepMaskCopyXRGB8888
2.6% 2.6% libSystem.B.dylib szone_free
2.4% 2.4% mach_kernel ml_set_interrupts_enabled
1.9% 1.9% LyX dyld_stub_dlopen
1.4% 1.4% libSystem.B.dylib szone_malloc
1.4% 1.4% commpage [libSystem.B.dylib] __memcpy
1.4% 1.4% libSystem.B.dylib szone_calloc
1.2% 1.2% libRIP.A.dylib ripc_DrawGlyphs
1.2% 1.2% CoreGraphics vecCGSFill8by1
1.1% 1.1% ATS ProcessDeviceMetrics(unsigned long, unsigned short const*, unsigned long, unsigned char* const*, void const*)
0.9% 0.9% libSystem.B.dylib pthread_mutex_lock
0.9% 0.9% libSystem.B.dylib szone_size
0.8% 0.8% CarbonCore CompareAndSwap
0.8% 0.8% CoreGraphics CGSCacheAquireValues
0.8% 0.8% libRIP.A.dylib ripl_BltGlyph
0.7% 0.7% ATS MorphTableDoLigatureSubtableMort
0.7% 0.7% libSystem.B.dylib pthread_mutex_unlock
0.7% 0.7% QD FindUniformRun(ATSGlyphVector const*, unsigned long*, unsigned long, GlyphArrayInfo const*, CGGlyphsData*, unsigned long*, UniformRunSettings*)
0.6% 0.6% LyX 0xc1934 [624B]
0.6% 0.6% LyX 0xa8978 [992B]
0.5% 0.5% LyX 0xe7644 [248B]
0.5% 0.5% LyX 0x1c2f5c [252B]
0.5% 0.5% LyX dyld_stub_memcpy
0.5% 0.5% QD RenderGlyphRecordArrayWithCG
0.5% 0.5% QD MakeLayoutDeviceValues
0.5% 0.5% LyX 0x1c2ea4 [184B]
0.5% 0.5% CoreFoundation CFRelease
0.5% 0.5% ATS _eGetGlyphVectorIndex
0.4% 0.4% libSystem.B.dylib free
0.4% 0.4% LyX 0xb9b08 [376B]
0.4% 0.4% QD GetRelevantLineQuantities(ATSGlyphVector const*, unsigned long, unsigned long, long, GlyphArrayInfo*, FixedPoint*)
0.4% 0.4% LyX 0x9c18c [464B]
0.4% 0.4% CarbonCore dyld_stub_free
0.4% 0.4% LyX 0xe74b4 [104B]
0.4% 0.4% QD dyld_stub_pthread_mutex_lock
0.4% 0.4% ATS _eGCGetStrikeInfo
0.4% 0.4% CarbonCore GetThreadGlobals
0.4% 0.4% CoreFoundation _CFRuntimeCreateInstance
0.4% 0.4% LyX 0x34c580 [1.6KB]
0.3% 0.3% ATS dyld_stub_memset
0.3% 0.3% LyX 0xe7208 [60B]
0.3% 0.3% LyX 0xaa2b4 [1.5KB]
0.3% 0.3% LyX 0x3447b8 [912B]
0.3% 0.3% libSystem.B.dylib malloc_zone_free
0.3% 0.3% CoreGraphics dyld_stub_malloc
0.3% 0.3% CoreFoundation CFRetain
0.3% 0.3% LyX 0x6a790 [160B]
0.3% 0.3% CoreGraphics CGFontLockBitmaps
0.3% 0.3% LyX 0xe44b4 [260B]
0.3% 0.3% LyX 0xb9960 [96B]
0.3% 0.3% ATS ApplyHangers
0.3% 0.3% LyX 0xe53d0 [412B]
0.3% 0.3% ATS OldGlyphsCacheRun(TStrike*, int, unsigned long, unsigned short const*, void (*)(unsigned long, unsigned short const*, unsigned long, unsigned char* const*, void const*), void*)
0.3% 0.3% ATS DoCaretAnglesAndMaxs
0.3% 0.3% libRIP.A.dylib ripc_GetClippingState
0.3% 0.3% ATS _eGCCreateStrikeKeyWithVariation
0.3% 0.3% LyX 0xa18b8 [156B]
0.3% 0.3% libSystem.B.dylib malloc_zone_malloc
0.3% 0.3% LyX 0xbab7c [1.3KB]
0.3% 0.3% QD TTextLineLayout::EnsureLayoutIsUpToDate(unsigned long, unsigned char, unsigned long, TATSUGlyphRecordArray**)
0.3% 0.3% ATS _eGetGlyphAddresses
0.3% 0.3% CoreGraphics vecCGSConvertXRGB8888toARGB8888
0.3% 0.3% CoreGraphics CGColorSpaceAdjustColor
0.3% 0.3% commpage [libSystem.B.dylib] __bzero
0.3% 0.3% LyX 0xe3a20 [128B]
0.3% 0.3% LyX 0x6b218 [256B]
0.3% 0.3% QD TATSUStyle::PrepareForWriteUse()
0.3% 0.3% LyX 0x30fbfc [1.0KB]
0.2% 0.2% QD SetupNoDrawProcs
0.2% 0.2% QD QDNewCGPathFromQDRegion
0.2% 0.2% LyX 0x3e47cc [1.6KB]
0.2% 0.2% libSystem.B.dylib malloc_zone_calloc
0.2% 0.2% LyX 0xe3580 [236B]
0.2% 0.2% LyX 0x31410c [1.3KB]
0.2% 0.2% QD TTextLineLayout:: ConstructGlyphRecordArrayWithVirtualGlyphs(TATSUGlyphRecordArray*, unsigned long*)
0.2% 0.2% LyX 0xa3514 [132B]
0.2% 0.2% LyX 0xa0db0 [208B]
0.2% 0.2% ATS ProcessSingleMorphRun
0.2% 0.2% ATS ApplyImposedStreamShifts
0.2% 0.2% LyX 0xe556c [168B]
0.2% 0.2% CoreGraphics shape_enum_alloc
0.2% 0.2% ATS LookupGlyph(GlyphVector*, unsigned short)
0.2% 0.2% ATS AGCongruent
0.2% 0.2% CoreGraphics dyld_stub_calloc
0.2% 0.2% CoreGraphics _CG_spin_lock_try
0.2% 0.2% LyX 0xa0f50 [164B]
0.2% 0.2% LyX 0x43f0b8 [612B]
0.2% 0.2% LyX 0x358cb8 [976B]
0.2% 0.2% LyX 0x34b8f8 [232B]
0.2% 0.2% libRIP.A.dylib ripc_GetColor
0.2% 0.2% libSystem.B.dylib rintf
0.2% 0.2% QD dyld_stub_pthread_mutex_unlock
0.2% 0.2% ATS AGAddAttribute
0.2% 0.2% LyX 0x2781c [100B]
0.2% 0.2% ATS FOFindTableInCache
0.2% 0.2% CarbonCore FixRatio
0.2% 0.2% LyX 0xe2424 [344B]
0.2% 0.2% LyX 0x30fa70 [396B]
0.2% 0.2% QD SetPortPat
0.2% 0.2% ATS GrabAnyMorphTable
0.2% 0.2% LyX 0xb9a40 [200B]
0.2% 0.2% QD GetLayoutDevMetricsGroup(ATSGlyphVector*, unsigned long, unsigned long, Rect*)
0.2% 0.2% libSystem.B.dylib malloc
0.2% 0.2% CoreGraphics CGRectContainsRect
0.2% 0.2% CoreGraphics CGFontKeyGetQuantizationLevel
0.2% 0.2% libSystem.B.dylib calloc
0.2% 0.2% LyX 0x12f38 [128B]
0.2% 0.2% CarbonCore TSUnlockMutex
0.2% 0.2% libSystem.B.dylib strlen
0.2% 0.2% mach_kernel shandler
0.2% 0.2% libSystem.B.dylib pthread_mutex_trylock
0.2% 0.2% LyX 0xa8e34 [492B]
0.2% 0.2% CarbonCore TSAcquireReader
0.2% 0.2% ATS SetupFlagsMetricsAndID
0.2% 0.2% CoreGraphics saveFP
0.2% 0.2% CoreGraphics path_add
0.2% 0.2% QD GetQDThreadGlobals
0.2% 0.2% QD dyld_stub_GetThreadGlobals
0.2% 0.2% CoreGraphics CGRectGetMaxX
0.2% 0.2% LyX 0x345a0c [500B]
0.2% 0.2% mach_kernel trap
0.2% 0.2% QD QDEndCGContext
0.2% 0.2% CoreFoundation CFAllocatorDeallocate
0.2% 0.2% CoreGraphics ARGB32_pattern
0.2% 0.2% LyX 0x1c6890 [124B]
0.2% 0.2% QD TTextLineLayout:: ConstructGlyphRecordArray(TATSUGlyphRecordArray*, TLayoutControls*)
0.2% 0.2% QD SetDeviceHorizontalGlyphBox(unsigned long, unsigned short, TGCRect const*, void*)
0.2% 0.2% CoreGraphics getSimpleKey
0.2% 0.2% QD TLayoutControls::ValidateValue(unsigned long, unsigned long, void const*) const
0.2% 0.2% QD FetchValue(unsigned long, unsigned long, void const*, unsigned char, void*, unsigned long*)
0.2% 0.2% CoreGraphics CGRectIntersection
0.2% 0.2% CoreGraphics CGPathAddLineToPoint
0.2% 0.2% CoreGraphics shape_enum_next
0.2% 0.2% QD SetContextTextMatrix(CGContext*, UniformRunSettings*, unsigned long, SavedCGContextSettings*, CGGlyphsData*)
0.2% 0.2% CoreGraphics CGPathAddRects 0.2% 0.2% CoreGraphics CGContextShowGlyphsWithAdvances
0.2% 0.2% CoreGraphics CGColorTransformConvertColorComponent
0.2% 0.2% LyX 0x346400 [316B]
0.2% 0.2% LyX 0x12ef8 [56B]




Reply via email to