-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73750e9
commit cbfd1f5
Showing
5 changed files
with
209 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"title": "Debugger Scenario Options", | ||
"type": "object", | ||
"properties": { | ||
"codeCells": { | ||
"title": "Code to execute", | ||
"description": "Python code cells to execute one-by-one to populate the debugger namespace, e.g. `from numpy import *`", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"default": [ | ||
"[globals().__setitem__(f'x{i}', 'y') for i in range(1000)];", | ||
"z = 1" | ||
] | ||
}, | ||
"expectedNumberOfVariables": { | ||
"title": "Expected number of variables", | ||
"description": "The scenario waits until debugger panel is populated with at least as many variables as specified. For accurate timings should have as many members as there are code cells.", | ||
"type": "array", | ||
"items": { | ||
"type": "integer", | ||
"min": 0 | ||
}, | ||
"default": [1000, 1001] | ||
} | ||
}, | ||
"required": ["codeCells", "expectedNumberOfVariables"], | ||
"additionalProperties": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* tslint:disable */ | ||
/** | ||
* This file was automatically generated by json-schema-to-typescript. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | ||
* and run json-schema-to-typescript to regenerate this file. | ||
*/ | ||
|
||
/** | ||
* Python code cells to execute one-by-one to populate the debugger namespace, e.g. `from numpy import *` | ||
*/ | ||
export type CodeToExecute = string[]; | ||
/** | ||
* The scenario waits until debugger panel is populated with at least as many variables as specified. For accurate timings should have as many members as there are code cells. | ||
*/ | ||
export type ExpectedNumberOfVariables = number[]; | ||
|
||
export interface DebuggerScenarioOptions { | ||
codeCells: CodeToExecute; | ||
expectedNumberOfVariables: ExpectedNumberOfVariables; | ||
} |