MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / reset

Method reset

runtime/Log.cc:556–563  ·  view source on GitHub ↗

* Ready's the structure for a new log statement by reassigning the static * log information. Dynamic arguments can then be push()-ed into the * structure. * * \param meta * Static log data to refer to * \param logId * Preprocessor assigned log id of the log message * \param rdtsc * Invocation time of the log message */

Source from the content-addressed store, hash-verified

554 * Invocation time of the log message
555 */
556void
557Log::LogMessage::reset(FormatMetadata *meta, uint32_t logId, uint64_t rdtsc)
558{
559 this->metadata = meta;
560 this->rdtsc = rdtsc;
561 this->logId = logId;
562 numArgs = 0;
563}
564
565// Indicates whether the structure stores a valid log statement or not
566bool Log::LogMessage::valid() {

Callers 4

freeBufferFragmentMethod · 0.45
getNextLogStatementMethod · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36