Skip to content

Commit

Permalink
remove cpu watcher from the list, this is not really something we wan…
Browse files Browse the repository at this point in the history
…t (it does not seems to be useful at all)
  • Loading branch information
estebanlm committed Jan 10, 2025
1 parent b292fc6 commit e745b00
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/NewTools-ProcessBrowser/StProcessBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ StProcessBrowser >> buildContextToolbarActions [
StProcessBrowser >> buildGeneralToolbarActions [

^ SpActionGroup new
addActionWith: [ :action | action
name: 'CPU Watcher';
iconName: #watch;
description: 'Toggle CPU watcher.';
beToggleButton;
action: [ self toggleCPUWatcher: action presenter state ] ];
addActionWith: [ :action | action
name: 'Auto update';
iconName: #autoUpdate;
Expand Down Expand Up @@ -205,8 +199,8 @@ StProcessBrowser >> displayForProcess: aProcess [

{ #category : 'private' }
StProcessBrowser >> ensureAllWatchersAreClosed [

self flag: #TODO. "This is to cleanup the processes for watching/auto-update"
self isAutoUpdating ifTrue: [ self stopAutoUpdate ]
]

{ #category : 'private - accessing' }
Expand Down Expand Up @@ -248,6 +242,7 @@ StProcessBrowser >> initializeWindow: aWindowPresenter [
aWindowPresenter
title: self class title;
initialExtent: self class defaultExtent;
windowIcon: (self iconNamed: #processBrowser);
whenClosedDo: [ self ensureAllWatchersAreClosed ]
]

Expand Down Expand Up @@ -379,12 +374,6 @@ StProcessBrowser >> toggleAutoUpdate: aBoolean [
ifFalse: [ self stopAutoUpdate ]
]

{ #category : 'actions' }
StProcessBrowser >> toggleCPUWatcher: aBoolean [

aBoolean crTrace
]

{ #category : 'initialization' }
StProcessBrowser >> updateCodeFromContext: aContext [

Expand All @@ -405,7 +394,7 @@ StProcessBrowser >> updateCodeFromContext: aContext [
StProcessBrowser >> updatePresenter [

self model ifNil: [ ^ self ].
processListPresenter items: self model processList.
processListPresenter updateItemsKeepingSelection: self model processList.
self updateToolbar
]

Expand Down

0 comments on commit e745b00

Please sign in to comment.