Tcl Source Code

Artifact [59609d776a]
Login

Artifact 59609d776aa75ddda0a335c27be7191ea136757f:

Attachment "sample.txt" to ticket [3485833fff] added by dkf 2012-02-09 23:01:23.
Sampling process 84032 for 1 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling tcltest (pid 84032) every 1 millisecond
Call graph:
    888 Thread_2507
      888 start
        888 main
          888 Tcl_MainEx
            888 Tcl_RecordAndEvalObj
              888 Tcl_EvalObjEx
                888 TclEvalObjEx
                  888 TclNRRunCallbacks
                    888 TEBCresume
                      888 TclNREvalObjv
                        888 TclInvokeStringCommand
                          888 TestcmdtraceCmd
                            888 Tcl_Eval
                              888 Tcl_EvalEx
                                888 TclEvalEx
                                  888 Tcl_EvalObjv
                                    888 TclNREvalObjv
                                      888 Tcl_TimeObjCmd
                                        888 Tcl_EvalObjEx
                                          888 TclEvalObjEx
                                            885 TclNRRunCallbacks
                                              828 NRRunObjProc
                                                828 NsEnsembleImplementationCmdNR
                                                  823 Tcl_NREvalObj
                                                    823 TclNREvalObjEx
                                                      817 TclNREvalObjv
                                                        807 TEOV_RunEnterTraces
                                                          762 Tcl_GetStringFromObj
                                                            762 Tcl_GetString
                                                              762 UpdateStringOfList
                                                                618 TclScanElement
                                                                  618 TclScanElement
                                                                66 TclConvertElement
                                                                  66 TclConvertElement
                                                                66 __memset_pattern
                                                                  66 __memset_pattern
                                                                12 Tcl_DbCkalloc
                                                                  11 TclpAlloc
                                                                    11 malloc
                                                                      10 malloc_zone_malloc
                                                                        10 szone_malloc
                                                                          10 large_and_huge_malloc
                                                                            10 mmap
                                                                              10 mmap
                                                                      1 malloc
                                                                  1 Tcl_MutexLock
                                                                    1 pthread_mutex_lock
                                                                      1 pthread_mutex_lock
                                                          39 TclCheckInterpTraces
                                                            33 CallTraceFunction
                                                              33 CallTraceFunction
                                                            6 Tcl_RestoreInterpState
                                                              3 Tcl_DiscardInterpState
                                                                3 Tcl_DbCkfree
                                                                  2 TclpFree
                                                                    2 free
                                                                      1 free
                                                                      1 szone_free
                                                                        1 szone_free
                                                                  1 Tcl_MutexUnlock
                                                                    1 Tcl_MutexUnlock
                                                              2 Tcl_SetObjResult
                                                                2 Tcl_DbDecrRefCount
                                                                  1 Tcl_DbDecrRefCount
                                                                  1 Tcl_GetThreadData
                                                                    1 TclThreadStorageKeyGet
                                                                      1 TclThreadStorageKeyGet
                                                              1 Tcl_DbDecrRefCount
                                                                1 Tcl_GetThreadData
                                                                  1 TclThreadStorageKeyGet
                                                                    1 pthread_getspecific
                                                                      1 pthread_getspecific
                                                          3 GetCommandSource
                                                            3 Tcl_DbNewListObj
                                                              2 NewListIntRep
                                                                1 Tcl_AttemptDbCkalloc
                                                                  1 TclpAlloc
                                                                    1 malloc
                                                                      1 malloc_zone_malloc
                                                                        1 szone_malloc
                                                                          1 tiny_malloc_from_free_list
                                                                            1 tiny_malloc_from_free_list
                                                                1 Tcl_DbIncrRefCount
                                                                  1 Tcl_GetThreadData
                                                                    1 Tcl_GetThreadData
                                                              1 Tcl_DbCkalloc
                                                                1 Tcl_DbCkalloc
                                                          2 TclDbInitNewObj
                                                            1 CreateHashEntry
                                                              1 Tcl_DbCkalloc
                                                                1 TclpAlloc
                                                                  1 malloc
                                                                    1 malloc_zone_malloc
                                                                      1 szone_malloc
                                                                        1 szone_malloc
                                                            1 memset
                                                              1 memset
                                                          1 Tcl_DbCkalloc
                                                            1 Tcl_DbCkalloc
                                                        6 StringRangeCmd
                                                          4 Tcl_SetObjResult
                                                            4 Tcl_DbDecrRefCount
                                                              1 TclFreeObj
                                                                1 Tcl_DbCkfree
                                                                  1 Tcl_MutexUnlock
                                                                    1 pthread_mutex_unlock
                                                                      1 pthread_mutex_unlock
                                                              1 Tcl_DbCkfree
                                                                1 Tcl_MutexLock
                                                                  1 pthread_mutex_lock
                                                                    1 pthread_mutex_lock
                                                              1 Tcl_DbDecrRefCount
                                                              1 Tcl_DeleteHashEntry
                                                                1 Tcl_DbCkfree
                                                                  1 TclpFree
                                                                    1 free
                                                                      1 szone_free
                                                                        1 tiny_free_list_add_ptr
                                                                          1 tiny_free_list_add_ptr
                                                          1 Tcl_GetCharLength
                                                            1 Tcl_GetCharLength
                                                          1 Tcl_GetRange
                                                            1 Tcl_NewStringObj
                                                              1 Tcl_DbNewStringObj
                                                                1 TclDbInitNewObj
                                                                  1 TclDbInitNewObj
                                                        2 TclDbInitNewObj
                                                          2 CreateHashEntry
                                                            2 Tcl_DbCkalloc
                                                              1 Tcl_MutexUnlock
                                                                1 pthread_mutex_unlock
                                                                  1 pthread_mutex_unlock
                                                              1 TclpAlloc
                                                                1 malloc
                                                                  1 malloc
                                                        1 TEOV_LookupCmdFromObj
                                                          1 Tcl_GetCommandFromObj
                                                            1 Tcl_GetCommandFromObj
                                                        1 Tcl_DbCkalloc
                                                          1 TclpAlloc
                                                            1 malloc
                                                              1 malloc_zone_malloc
                                                                1 malloc_zone_malloc
                                                      2 TclDbInitNewObj
                                                        2 Tcl_DbCkalloc
                                                          2 Tcl_DbCkalloc
                                                      2 TclNREvalObjEx
                                                      1 TclListObjCopy
                                                        1 Tcl_DbCkalloc
                                                          1 Tcl_MutexLock
                                                            1 pthread_mutex_lock
                                                              1 pthread_mutex_lock
                                                      1 Tcl_DbDecrRefCount
                                                        1 Tcl_DeleteHashEntry
                                                          1 Tcl_DbCkfree
                                                            1 ValidateMemory
                                                              1 ValidateMemory
                                                  3 Tcl_DbIncrRefCount
                                                    2 Tcl_GetThreadData
                                                      1 TclThreadStorageKeyGet
                                                        1 TclThreadStorageKeyGet
                                                      1 Tcl_GetThreadData
                                                    1 FindHashEntry
                                                      1 CreateHashEntry
                                                        1 CreateHashEntry
                                                  1 NsEnsembleImplementationCmdNR
                                                  1 Tcl_DbNewListObj
                                                    1 NewListIntRep
                                                      1 memset
                                                        1 memset
                                              22 TEBCresume
                                                13 TclNREvalObjv
                                                  10 TEOV_RunEnterTraces
                                                    5 GetCommandSource
                                                      3 Tcl_DbNewListObj
                                                        1 NewListIntRep
                                                          1 Tcl_DbIncrRefCount
                                                            1 Tcl_GetThreadData
                                                              1 TclThreadStorageKeyGet
                                                                1 TclpThreadGetMasterTSD
                                                                  1 pthread_getspecific
                                                                    1 pthread_getspecific
                                                        1 TclDbInitNewObj
                                                          1 CreateHashEntry
                                                            1 Tcl_DbCkalloc
                                                              1 TclpAlloc
                                                                1 malloc
                                                                  1 malloc_zone_malloc
                                                                    1 szone_malloc
                                                                      1 tiny_malloc_from_free_list
                                                                        1 tiny_malloc_from_free_list
                                                        1 Tcl_DbCkalloc
                                                          1 Tcl_MutexUnlock
                                                            1 pthread_mutex_unlock
                                                              1 pthread_mutex_unlock
                                                      1 Tcl_DbDecrRefCount
                                                        1 Tcl_DeleteHashEntry
                                                          1 Tcl_DbCkfree
                                                            1 TclpFree
                                                              1 free
                                                                1 szone_free
                                                                  1 szone_free
                                                      1 Tcl_DbNewStringObj
                                                        1 Tcl_DbCkalloc
                                                          1 TclpAlloc
                                                            1 malloc
                                                              1 malloc_zone_malloc
                                                                1 szone_malloc
                                                                  1 tiny_malloc_from_free_list
                                                                    1 tiny_malloc_from_free_list
                                                    2 TclCheckInterpTraces
                                                      1 CallTraceFunction
                                                        1 TclStackAlloc
                                                          1 StackAllocWords
                                                            1 GrowEvaluationStack
                                                              1 GrowEvaluationStack
                                                      1 Tcl_SaveInterpState
                                                        1 Tcl_DbCkalloc
                                                          1 TclpAlloc
                                                            1 malloc
                                                              1 malloc
                                                    1 TEOV_RunEnterTraces
                                                    1 TclDbInitNewObj
                                                      1 Tcl_DbCkalloc
                                                        1 Tcl_DbCkalloc
                                                    1 Tcl_DbCkalloc
                                                      1 Tcl_MutexUnlock
                                                        1 pthread_mutex_unlock
                                                          1 pthread_mutex_unlock
                                                  2 TclDbInitNewObj
                                                    1 CreateHashEntry
                                                      1 Tcl_DbCkalloc
                                                        1 TclpAlloc
                                                          1 malloc
                                                            1 malloc_zone_malloc
                                                              1 szone_malloc
                                                                1 tiny_malloc_from_free_list
                                                                  1 tiny_free_list_add_ptr
                                                                    1 tiny_free_list_add_ptr
                                                    1 Tcl_DbCkalloc
                                                      1 TclpAlloc
                                                        1 malloc
                                                          1 malloc_zone_malloc
                                                            1 szone_malloc
                                                              1 szone_malloc
                                                  1 Tcl_DbCkalloc
                                                    1 Tcl_DbCkalloc
                                                3 TEBCresume
                                                1 TclDbInitNewObj
                                                  1 CreateHashEntry
                                                    1 memset
                                                      1 memset
                                                1 TclObjLookupVarEx
                                                  1 TclObjLookupVarEx
                                                1 TclStackFree
                                                  1 OFFSET
                                                    1 OFFSET
                                                1 Tcl_DbDecrRefCount
                                                  1 Tcl_DbDecrRefCount
                                                1 Tcl_DbIncrRefCount
                                                  1 Tcl_DbIncrRefCount
                                                1 ValidatePcAndStackTop
                                                  1 ValidatePcAndStackTop
                                              18 Tcl_DbDecrRefCount
                                                6 Tcl_DbCkfree
                                                  2 Tcl_DbCkfree
                                                  2 ValidateMemory
                                                    2 ValidateMemory
                                                  1 Tcl_MutexLock
                                                    1 Tcl_MutexLock
                                                  1 TclpFree
                                                    1 free
                                                      1 szone_free
                                                        1 szone_free
                                                6 Tcl_DeleteHashEntry
                                                  6 Tcl_DbCkfree
                                                    2 Tcl_DbCkfree
                                                    2 TclpFree
                                                      2 free
                                                        2 szone_free
                                                          2 szone_free
                                                    2 ValidateMemory
                                                      2 ValidateMemory
                                                5 TclFreeObj
                                                  4 Tcl_DbCkfree
                                                    2 TclpFree
                                                      1 free
                                                        1 szone_free
                                                          1 szone_free
                                                      1 malloc_zone_free
                                                        1 malloc_zone_free
                                                    1 ValidateMemory
                                                      1 ValidateMemory
                                                    1 dyld_stub_pthread_mutex_unlock
                                                      1 dyld_stub_pthread_mutex_unlock
                                                  1 FindHashEntry
                                                    1 CreateHashEntry
                                                      1 CreateHashEntry
                                                1 memset
                                                  1 memset
                                              15 TEOV_RunLeaveTraces
                                                13 Tcl_DbDecrRefCount
                                                  11 TclFreeObj
                                                    7 __memset_pattern
                                                      7 __memset_pattern
                                                    3 Tcl_DbCkfree
                                                      2 TclpFree
                                                        2 free
                                                          2 munmap$UNIX2003
                                                            2 munmap$UNIX2003
                                                      1 Tcl_MutexUnlock
                                                        1 Tcl_MutexUnlock
                                                    1 FreeListInternalRep
                                                      1 Tcl_DbDecrRefCount
                                                        1 FindHashEntry
                                                          1 CreateHashEntry
                                                            1 CreateHashEntry
                                                  1 FindHashEntry
                                                    1 CreateHashEntry
                                                      1 CreateHashEntry
                                                  1 Tcl_DbCkfree
                                                    1 TclpFree
                                                      1 free
                                                        1 szone_free
                                                          1 szone_free
                                                2 TclCheckInterpTraces
                                                  1 Tcl_RestoreInterpState
                                                    1 Tcl_DiscardInterpState
                                                      1 Tcl_DbCkfree
                                                        1 TclpFree
                                                          1 free
                                                            1 szone_free
                                                              1 szone_free
                                                  1 Tcl_SaveInterpState
                                                    1 Tcl_DbCkalloc
                                                      1 Tcl_MutexUnlock
                                                        1 pthread_mutex_unlock
                                                          1 pthread_mutex_unlock
                                              2 TEOEx_ListCallback
                                                2 Tcl_DbDecrRefCount
                                                  2 TclFreeObj
                                                    1 FindHashEntry
                                                      1 CreateHashEntry
                                                        1 CreateHashEntry
                                                    1 FreeListInternalRep
                                                      1 FreeListInternalRep
                                            3 TclNREvalObjEx
                                              2 TclInterpReady
                                                2 Tcl_ResetResult
                                                  1 ResetObjResult
                                                    1 Tcl_DbIsShared
                                                      1 Tcl_DbIsShared
                                                  1 Tcl_ResetResult
                                              1 TclDbInitNewObj
                                                1 CreateHashEntry
                                                  1 Tcl_DbCkalloc
                                                    1 Tcl_DbCkalloc

Total number in stack (recursive counted multiple, when >=5):
        19       Tcl_DbCkalloc
        12       Tcl_DbCkfree
        11       CreateHashEntry
        10       Tcl_DbDecrRefCount
        10       TclpAlloc
        10       malloc
        9       TclDbInitNewObj
        9       TclpFree
        9       free
        8       malloc_zone_malloc
        8       szone_free
        7       Tcl_MutexUnlock
        7       szone_malloc
        5       FindHashEntry
        5       Tcl_GetThreadData
        5       pthread_mutex_unlock

Sort by top of stack, same collapsed (when >= 5):
        TclScanElement        618
        __memset_pattern        73
        TclConvertElement        66
        CallTraceFunction        33
        mmap        10
        szone_free        8
        Tcl_DbCkalloc        7
        ValidateMemory        6
        CreateHashEntry        5
        pthread_mutex_unlock        5
Sample analysis of process 84032 written to file /dev/stdout