MCPcopy Create free account
hub / github.com/Da1sypetals/SnapViewer / insert_data

Function insert_data

convert_snap.py:246–253  ·  view source on GitHub ↗
(idx, alloc, elem)

Source from the content-addressed store, hash-verified

244 end_idx = min(i + INSERT_BATCH_SIZE, len(allocs))
245
246 def insert_data(idx, alloc, elem):
247 return (
248 idx,
249 alloc["size"],
250 alloc["timesteps"][0],
251 alloc["timesteps"][-1],
252 format_callstack(elem["frames"]),
253 )
254
255 cursor.executemany(
256 "INSERT INTO allocs VALUES (?, ?, ?, ?, ?)",

Callers 1

make_dbFunction · 0.85

Calls 1

format_callstackFunction · 0.85

Tested by

no test coverage detected