MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / getJobSize

Method getJobSize

src/SourceCompile/CompileSourceFile.cpp:151–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151uint64_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
171bool CompileSourceFile::pythonAPI_() {
172#ifdef SURELOG_WITH_PYTHON

Callers 2

compileFileSet_Method · 0.80

Calls 1

filesizeMethod · 0.45

Tested by

no test coverage detected