We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f738580 commit 5a39be8Copy full SHA for 5a39be8
src/codegen.cpp
@@ -1897,6 +1897,16 @@ static void coverageAllocLine(StringRef filename, int line)
1897
allocLine(coverageData[filename], line);
1898
}
1899
1900
+extern "C" JL_DLLEXPORT void jl_coverage_visit_line(const char* filename_, size_t len_filename, int line)
1901
+{
1902
+ StringRef filename = StringRef(filename_, len_filename);
1903
+ if (imaging_mode || filename == "" || filename == "none" || filename == "no file" || filename == "<missing>" || line < 0)
1904
+ return;
1905
+ std::vector<logdata_block*> &vec = coverageData[filename];
1906
+ uint64_t *ptr = allocLine(vec, line);
1907
+ (*ptr)++;
1908
+}
1909
+
1910
// Memory allocation log (malloc_log)
1911
1912
static logdata_t mallocData;
0 commit comments