Bug 41261

GemStone/S 64 Bit

2.4.4.7, 2.4.4.6, 2.4.4.5, 2.4.4.4, 2.4.4.3, 2.4.4.2, 2.4.4.1, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4

All

2.4.5, 2.4.4.8

ProfMonitorTree MNU on profiling code that includes a user action

When profiling code that contains a call to a user action, if samples are
taken within the user action code, the profile report will error with a
message not understood error on #'GCI' #'_classAndSelectorNameWidth:'

Workaround

File in the following as SystemUser and commit

category 'Private'
method: ProfMonitorTree
printPME: aPME on: str total: theTotal

  str add: (self printablePercentFor: (aPME tally / theTotal)); space.
  str add: '('; add: aPME tally asString; add: ')'; space.

  aPME cmethod class == GsMethod
     ifTrue: [
       str
          add: (aPME cmethod _classAndSelectorNameWidth: 20);
          add: ' ['; add: aPME rcvrClass name; add: ']'; lf
       ]
       ifFalse: [      "for user actions, cmethod is #GCI"
          str addAll: (aPME cmethod asString width: 20); lf
       ]
%


Last updated: 4/9/12