This is just a catch-all for various standalone functions. We should split it up by function category.
The motivation is to avoid circular dependencies between Perf{Reader|Parser|Serializer}. Currently TrimZeroesFromBuildIDString is defined in Reader and used in Serializer.
I propose:
perf_data_utils:
- malloced_unique_ptr
- CallocMemoryForEvent
- ReallocMemoryForEvent
- CallocMemoryForBuildID
- GetSampleInfoForEvent
- GetTimeFromPerfEvent
- PerfizeBuildIDString (from perf_reader)
- TrimZeroesFromBuildIDString (from perf_reader)
raw_data_utils:
- ByteSwap
- MaybeSwap
- Md5Prefix (x 2)
- RawDataToHexString (x 2)
- HexStringToRawData
- GetNumBits
- Align
- GetUint64AlignedStringLength
file_utils:
- GetFileSizeFromHandle
- FileToBuffer
- BufferToFile
- FileExists
- ReadFileToData (redundant?)
- WriteFileToData (redundant?)
string_utils:
- TrimWhiteSpace
- SplitString
Comment 1 by dhsharp@chromium.org
, Mar 25 2016