| 149 | } |
| 150 | |
| 151 | uint64_t CompileSourceFile::getJobSize(Action action) const { |
| 152 | FileSystem* const fileSystem = FileSystem::getInstance(); |
| 153 | std::streamsize size = 0; |
| 154 | switch (action) { |
| 155 | case Preprocess: |
| 156 | case PostPreprocess: { |
| 157 | if (fileSystem->filesize(m_fileId, &size)) { |
| 158 | return size; |
| 159 | } |
| 160 | } break; |
| 161 | case Parse: |
| 162 | case PythonAPI: { |
| 163 | if (fileSystem->filesize(m_ppResultFileId, &size)) { |
| 164 | return size; |
| 165 | } |
| 166 | } break; |
| 167 | }; |
| 168 | return 0; |
| 169 | } |
| 170 | |
| 171 | bool CompileSourceFile::pythonAPI_() { |
| 172 | #ifdef SURELOG_WITH_PYTHON |
no test coverage detected