Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PlatformLab/NanoLog
/ functions
Functions
401 in github.com/PlatformLab/NanoLog
⨍
Functions
401
◇
Types & classes
64
↓ 181 callers
Function
pack
runtime/Packer.h:93
↓ 147 callers
Function
rdtsc
* Return the current value of the fine-grain CPU cycle counter * (accessed via the RDTSC instruction). */
runtime/Perf.cc:96
↓ 65 callers
Method
open
* Opens a compressed log with contents created by Encoder. * * \param filename * Compressed log file to open * \return * True if succes
runtime/Log.cc:1074
↓ 42 callers
Function
getParamInfo
runtime/NanoLogCpp17.h:131
↓ 40 callers
Function
splitAndParseTypesInFmtString
(fmtString)
preprocessor/FunctionGenerator.py:737
↓ 38 callers
Method
encodeLogMsgs
* Interprets the uncompressed log messages (created by the compile-time * generated code) contained in the *from buffer and compresses them to * the
runtime/Log.cc:208
↓ 32 callers
Function
peekEntryType
* Peek into a data array and identify the next entry embedded in the * compressed log (if there is one) and read it back. * * \param in
runtime/Log.h:460
↓ 28 callers
Method
generateLogFunctions
(self, logLevel, fmtString, compilationName, filename, linenum)
preprocessor/FunctionGenerator.py:343
↓ 22 callers
Function
discard
* This function just discards its argument. It's used to make it * appear that data is used, so that the compiler won't optimize * away the code we
runtime/Perf.cc:79
↓ 22 callers
Function
getArgSize
runtime/NanoLogCpp17.h:548
↓ 22 callers
Function
store_argument
runtime/NanoLogCpp17.h:368
↓ 21 callers
Method
getEncodedBytes
* Retrieve the number of bytes encoded in the internal buffer * * \return * Number of bytes encoded in the internal buffer */
runtime/Log.cc:446
↓ 20 callers
Function
printSingleArg
runtime/Log.cc:1246
↓ 19 callers
Function
getSizeOfPackedValues
* Given a stream of nibbles, return the total number of bytes used to represent * the values encoded with the nibbles. * * \param nibbles * T
runtime/Packer.h:300
↓ 19 callers
Function
parseArgumentStartingAt
(lines, startPos)
preprocessor/parser.py:147
↓ 16 callers
Function
extractCString
(source)
preprocessor/parser.py:113
↓ 15 callers
Method
finishReservation
* Complement to reserveProducerSpace that makes nbytes starting * from the return of reserveProducerSpace visible to the consumer.
runtime/RuntimeLogger.h:340
↓ 15 callers
Method
getNextLogStatement
* Iterative interface to decompress the next log statement (if there are any) * in the log file and optionally prints it via outputFd. The log statem
runtime/Log.cc:1965
↓ 15 callers
Method
reserveSpaceInternal
* Attempt to reserve contiguous space for the producer without making it * visible to the consumer (See reserveProducerSpace). * * This is the slow pa
runtime/RuntimeLogger.cc:743
↓ 13 callers
Method
current
(self)
preprocessor/docopt.py:297
↓ 13 callers
Function
isStringType
(typeStr)
preprocessor/FunctionGenerator.py:877
↓ 12 callers
Method
move
(self)
preprocessor/docopt.py:294
↓ 11 callers
Method
getTimestamp
Returns the runtime timestamp for the log invocation.
runtime/Log.cc:581
↓ 11 callers
Method
valid
Indicates whether the structure stores a valid log statement or not
runtime/Log.cc:566
↓ 10 callers
Function
compressLogHeader
* Extract the information from an UncompressedLogEntry and re-encode it * as a CompressedRecordEntry. Here, the provided lastTimestamp is provide
runtime/Log.h:513
↓ 10 callers
Method
peek
* Peek at the data available for consumption within the stagingBuffer. * The consumer should also invoke consume() to release space back * to the prod
runtime/RuntimeLogger.cc:818
↓ 10 callers
Method
readBufferExtent
* Read in the next buffer fragment from the compressed log. If an error occurs * the file descriptor will be in an undefined state. * * \param fd
runtime/Log.cc:1181
↓ 9 callers
Function
decompressLogHeader
* Read in and decompress the log metadata from a CompressedRecordEntry * * \param in * Character array to read the entry from
runtime/Log.h:548
↓ 9 callers
Method
getLogId
Returns the preprocessor-assigned log identifier for this log message
runtime/Log.cc:576
↓ 9 callers
Function
getLogLevel
runtime/NanoLog.cc:37
↓ 9 callers
Method
push
runtime/Log.h:755
↓ 8 callers
Method
consume
* Consumes the next nbytes in the StagingBuffer and frees it back * for the producer to reuse. nbytes must be less than what is
runtime/RuntimeLogger.h:361
↓ 8 callers
Method
get
runtime/Log.h:784
↓ 8 callers
Method
match
(self, left, collected=None)
preprocessor/docopt.py:270
↓ 8 callers
Method
readDictionary
* Reads the metadata necessary to decompress log messsages from a log file. * This function can be invoked incrementally to build a larger dictionary
runtime/Log.cc:636
↓ 8 callers
Method
reserveProducerSpace
* Attempt to reserve contiguous space for the producer without * making it visible to the consumer. The caller should invoke
runtime/RuntimeLogger.h:321
↓ 8 callers
Function
serialize
Measure the cost of cpuid
runtime/Perf.cc:1120
↓ 8 callers
Function
setLogLevel
runtime/NanoLog.cc:41
↓ 8 callers
Function
staticStrlen
runtime/NanoLogCpp17Test.cc:383
↓ 7 callers
Method
decompressNextLogStatement
* Attempt to read back the next log statement contained in the BufferFragment, * output the original log message to outputFd, and if applicable, run
runtime/Log.cc:1304
↓ 7 callers
Function
generateLogIdStr
(fmtString, filename, linenum)
preprocessor/FunctionGenerator.py:893
↓ 7 callers
Method
hasNext
* Whether one can invoke decompressNextLogStatement or not */
runtime/Log.cc:1663
↓ 7 callers
Function
memcpyShared
Measure the cost of copying a given number of bytes with memcpy.
runtime/Perf.cc:729
↓ 7 callers
Function
peekNextMeaningfulChar
(lines, filePos)
preprocessor/parser.py:295
↓ 7 callers
Method
reserve
* Reserve/Allocate enough space for N parameters in the structure * * \param nparams * Number of parameters to ensure space for */
runtime/Log.cc:513
↓ 7 callers
Function
sync
runtime/NanoLog.cc:45
↓ 6 callers
Function
arraySize
runtime/Util.h:184
↓ 6 callers
Function
getArgSizes
runtime/NanoLogCpp17.h:696
↓ 6 callers
Method
getNumArgs
Returns the number of arguments currently stored for the log.
runtime/Log.cc:571
↓ 6 callers
Method
getRecordFunctionDefinitionsFor
(self, compilationUnit)
preprocessor/FunctionGenerator.py:306
↓ 6 callers
Method
internalDecompressUnordered
* Decompress the log file that was open()-ed and print the message out in * an arbitrary order (i.e. dependent on runtime implementation and not * n
runtime/Log.cc:1702
↓ 6 callers
Function
parseLogStatement
(lines, startPosition)
preprocessor/parser.py:226
↓ 6 callers
Function
readCheckpoint
* Extracts a checkpoint from a file descriptor. * * \param[out] cp * Checkpoint structure to read the data into * \param fd
runtime/Log.h:586
↓ 6 callers
Method
readDictionaryFragment
* Reads a partial dictionary from the log file and adds it to the global * mapping of log identifiers to static log information. * * \param fd *
runtime/Log.cc:979
↓ 6 callers
Method
reset
* Ready's the structure for a new log statement by reassigning the static * log information. Dynamic arguments can then be push()-ed into the * stru
runtime/Log.cc:556
↓ 5 callers
Method
encodeNewDictionaryEntries
* Given a vector of StaticLogInfo and a starting index, encode all the static * log information into a partial dictionary for the Decompressor to use
runtime/Log.cc:138
↓ 5 callers
Method
flat
(self, *types)
preprocessor/docopt.py:109
↓ 5 callers
Function
getNumNibblesNeeded
runtime/NanoLogCpp17.h:330
↓ 5 callers
Method
outputMappingFile
(self, filename)
preprocessor/FunctionGenerator.py:126
↓ 5 callers
Function
store_arguments
runtime/NanoLogCpp17.h:465
↓ 4 callers
Function
countFmtParams
runtime/NanoLogCpp17.h:307
↓ 4 callers
Method
decompressTo
* Decompress the log file that was open()-ed and print the log messages out * in chronological order. * * \param outputFd * The file descript
runtime/Log.cc:1794
↓ 4 callers
Method
encodeBufferExtentStart
* Internal function that encodes a marker indicating that all log messages * after this point (but after the next marker) belong to a particular buff
runtime/Log.cc:409
↓ 4 callers
Function
format
A safe version of sprintf.
runtime/Util.cc:34
↓ 4 callers
Method
getNextLogTimestamp
* Return the timestamp of the next log message that can be outputted. It is * the responsibility of the caller to ensure that the BufferFragment cont
runtime/Log.cc:1673
↓ 4 callers
Method
logSomething
integrationTest/SimpleTestObject.cc:28
↓ 4 callers
Function
printHelp
* Prints the usage information to stdout. * * \param exe * Name of the executable */
runtime/LogDecompressor.cc:118
↓ 4 callers
Function
recordPrimitive
runtime/Log.h:609
↓ 4 callers
Function
setLogFile
runtime/NanoLog.cc:33
↓ 3 callers
Method
allocateBufferFragment
* Allocates a BufferFragment to read BufferExtents into * * \return * Allocated BufferFragment */
runtime/Log.cc:1118
↓ 3 callers
Function
freadHelper
* Reads a number of bytes from an fread repeatedly and times it * * \param readSize * Number of bytes to read at once * * \return total
runtime/Perf.cc:218
↓ 3 callers
Method
freeBufferFragment
* Internal function to store a BufferFragment on the free list * * \param bf * BufferFragment to store */
runtime/Log.cc:1136
↓ 3 callers
Function
getCount
runtime/LogTest.cc:2209
↓ 3 callers
Method
getId
runtime/RuntimeLogger.h:380
↓ 3 callers
Function
getStats
runtime/NanoLog.cc:10
↓ 3 callers
Function
ifstreamReadHelper
* Reads a number of bytes from an ifstream repeatedly and times it * * \param readSize * Number of bytes to read at once * * \return tot
runtime/Perf.cc:172
↓ 3 callers
Method
load
* Return the current value. */
runtime/Atomic.h:149
↓ 3 callers
Function
preallocate
runtime/NanoLog.cc:29
↓ 3 callers
Function
printConfig
runtime/NanoLog.cc:14
↓ 3 callers
Function
resetCount
runtime/LogTest.cc:2204
↓ 3 callers
Function
writeDictionary
Writes the metadata needed by the decompressor to interpret the log messages generated by compressFn.
preprocessor/unitTestData/test_outputCompilationFiles.h:704
↓ 2 callers
Method
add
* Atomically increment the value by a given amount. * * \param increment * How much to add to the value. If the value is a pointer
runtime/Atomic.h:73
↓ 2 callers
Function
bindThreadToCpu
* Ask the operating system to pin the current thread to a given CPU. * * \param cpu * Indicates the desired CPU and hyperthread; low order 2 b
runtime/Perf.cc:63
↓ 2 callers
Function
encode
(string)
preprocessor/FunctionGenerator.py:894
↓ 2 callers
Method
ensureStagingBufferAllocated
* Allocates thread-local structures if they weren't already allocated. * This is used by the generated C++ code to ensure it has space to
runtime/RuntimeLogger.h:171
↓ 2 callers
Function
generateIdVariableNameFromLogId
(logId)
preprocessor/FunctionGenerator.py:890
↓ 2 callers
Method
getEndOfPackedArguments
* Returns a pointer to to the first byte beyond the last pack()-ed value * * \return * Pointer to the first byte beyond last pack(
runtime/Packer.h:400
↓ 2 callers
Function
isDigit
* Checks whether a character is a digit (0-9) or not. * * \param c * character to check * \return * true if the character is a digit *
runtime/NanoLogCpp17.h:111
↓ 2 callers
Function
isWideString
(typeStr)
preprocessor/FunctionGenerator.py:886
↓ 2 callers
Function
manualCopy
* Measure the cost of copying cpyBytes from cold/hot source/destinations * * \param cpySize * Size of the copy * \param coldSrc *
runtime/Perf.cc:694
↓ 2 callers
Method
outputCompilationFiles
(outputFileName="BufferStuffer.h", inputFiles=[])
preprocessor/FunctionGenerator.py:156
↓ 2 callers
Function
parse_defaults
(doc)
preprocessor/docopt.py:452
↓ 2 callers
Function
parse_expr
expr ::= seq ( '|' seq )* ;
preprocessor/docopt.py:377
↓ 2 callers
Function
parse_long
long ::= '--' chars [ ( ' ' | '=' ) chars ] ;
preprocessor/docopt.py:301
↓ 2 callers
Function
parse_section
(name, source)
preprocessor/docopt.py:464
↓ 2 callers
Function
parse_seq
seq ::= ( atom [ '...' ] )* ;
preprocessor/docopt.py:390
↓ 2 callers
Function
parse_shorts
shorts ::= '-' ( chars )* [ [ ' ' ] chars ] ;
preprocessor/docopt.py:334
↓ 2 callers
Function
printHelp
()
benchmarks/genConfig.py:5
↓ 2 callers
Function
printHelp
benchmarks/aggregation/simpleRead.cpp:14
↓ 2 callers
Function
processFile
(inputFile, mapOutputFilename)
preprocessor/parser.py:323
next →
1–100 of 401, ranked by callers