ENH: CLI: add time estimation for non-cache slicing

JIRA: XXXX
Change-Id: Ifed2d70e8d6355087694df96e413cdbcf792d6d9
This commit is contained in:
lane.wei 2023-10-07 22:15:31 +08:00 committed by Lane.Wei
parent 04552e4c9b
commit 165bb96e35
6 changed files with 29 additions and 8 deletions

View file

@ -422,7 +422,7 @@ public:
// After calling the apply() function, call set_task() to limit the task to be processed by process().
virtual void set_task(const TaskParams &params) {}
// Perform the calculation. This is the only method that is to be called at a worker thread.
virtual void process(bool use_cache = false) = 0;
virtual void process(long long *time_cost_with_cache = nullptr, bool use_cache = false) = 0;
virtual int export_cached_data(const std::string& dir_path, bool with_space=false) { return 0;}
virtual int load_cached_data(const std::string& directory) { return 0;}
// Clean up after process() finished, either with success, error or if canceled.