Skip to content

scopeo-project/scopeo-execution-recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scopeo execution recorder

Unit tests badge

A library to record a method execution in a given (or automatically created) process and reify it as a call graph in Pharo.

How to install?

Metacello new
  githubUser: 'scopeo-project' project: 'scopeo-execution-recorder'
  commitish: 'main' path: 'src';
  baseline: 'ScopeoExecutionRecorder';
  load

How to use it?

More information to come

Simply create an instance of the recorder.
If needed, specify a block which must return true whenever the recorder should ignore the execution details of the method in argument.

Start the recorded execution by using the method recordBlock: aBlock:

| recorder |

recorder := ScpExecutionRecorder new 
	ignore: [ :m | 
		(m package name beginsWith: #Morph)
		or: [ m package name beginsWith: #FreeType ]
	];
	recordBlock: [ Transcript open ];
  yourself.

recorder execution inspect. "Inspect the traces. (More to come)"

Or attach the newly created recorder to an existing process and resume the latter process:

| recorder |

recorder := ScpExecutionRecorder new 
  attachToProcess: anExistingProcess;
  yourself.

anExistingProcess resume.

recorder execution inspect. "Inspect the traces. (More to come)"

Or attach to the context of a suspended process and resume that process:

| recorder | 

recorder := ScpExecutionRecorder new 
  attachToContext: anExistingProcess suspendedContext;
  yourself

anExistingProcess resume.

recorder execution inspect. "Inspect the traces. (More to come)"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published