mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-11-27 11:45:01 +03:00
aaac0ad7e3
I knew early on that `integeruniquer.index` could be used to index into `integeruniquer.data`, but I initially thought it was an optimization rather than a necessity. It seems like if there's data past the 1MB threshold in `integeruniquer.data`, then `integeruniquer.index` is actually quite useful. The file seems to contain `[byte offset, MB offset]` pairs encoded as two 32 bit unsigned little endian integers. Using that to decode the integer arrays encoded in `integeruniquer.data` allows the file in #63 to load. Fixes #63
16 lines
769 B
XML
16 lines
769 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ufwb version="1.17">
|
|
<grammar name="Integer Uniquer Data" start="id:1" author="Jamie Wong">
|
|
<description>Grammar for my file format</description>
|
|
<structure name="Root" id="1" encoding="ISO_8859-1:1987" endian="little" signed="no">
|
|
<binary name="integeruniquer.data file" id="2" length="32"/>
|
|
<structure name="Array" id="3" repeatmax="-1">
|
|
<number name="Size" id="4" fillcolor="CEFFD2" type="integer" length="4"/>
|
|
<structure name="Data" id="5" repeatmin="Size" repeatmax="Size">
|
|
<number name="Value" id="6" type="integer" length="8"/>
|
|
</structure>
|
|
</structure>
|
|
</structure>
|
|
</grammar>
|
|
</ufwb>
|