Configurable Idle periods #2
Make duration, the duration of the stress test element. Rather than the stress duration being 50% of the overall duration.
These changes are helpful when running long stress tests, where 25% idle team at each end of the test is excessive.
Defaults used give the same timings and overall test duration as before.
* Add support for varrying the number of CPU cores being stressed. Defauly will be ALL, prevously was fixed at 4 * Remove f string formatting, to maintain Python 3.0 support * Idle durations configurable (#3) * Add ability to adjust idle time. Make stress duration more specific (#2) * Don't wrap simple call for cpu core count * remove : * add gh-actions config * gh-actions fix * Trigger tests * Apply black fixes * Fix merge issues * Address PR feedback: * Use vcgencmd as default for for temperature and frequency measurement. Able to be overriden by passing file source as argument. * Remove default file locations for frequency and temp. User would need to know and specify this now. * If vcgencmd is not found, will now throw an exception not fall back to default file method. * Always measure frequency. * Format printing of temperature and frequency measurements. * Simplication of setting a solid background colour for plot. * Fix test failures: * Change measure_core_frequency to return a float. Print messages used to format to zero decimal places. * Update test to provide frequency file. As frequency is recorded by default. * black fix * Increase code coverage by covering plot of frequency. * make cooldown poll interval configurable (to speed up unit test) * Add additional tests. Improve code coverage. * rename transparent plot argument to make it more logical * Remove test which would call vcgencmd as this needs to be mocked. Package isn't available to be installed on circleci test system. * black fixes * provide example file locations in help text for temperature and frequency