summaryrefslogtreecommitdiff
path: root/lib/common
Commit message (Collapse)AuthorAge
* Add calloc() support to memory leak finder.Chris Wilson2013-09-19
|
* Set process title on Windows.Chris Wilson2013-08-25
| | | | | | Thanks to Arnaud for submitting the patch: "I propose a little patch to enable the SetProcessTitle function on windows system."
* Add ability to generate memory usage reports while running.Chris Wilson2013-02-13
| | | | | | | | | | | | * ./configure CXXFLAGS=-DDEBUG_LEAKS * Build and run the binary as normal (release or debug) * Send SIGUSR1 to the process (e.g. killall -USR1 bbstored) * Check the system logs, or the console. Not safe for use on a production process, as it does illegal things in a signal handler that may result in the process hanging. Use only for debugging, and be prepared to kill any stuck processes.
* Allow getting the standard Console and Syslog loggers. Add a Guard classChris Wilson2012-11-27
| | | | | that can be used to protect against permanent changes to their log levels.
* Fix duplicate tagging of housekeeping messages.Chris Wilson2012-11-17
|
* Use more efficient direct reset of Timers instead of assignment.Chris Wilson2012-11-17
|
* Fix timer miscalculation on Windows.Chris Wilson2012-11-17
|
* Allow constructing an empty MemBlockStream, as it's useful for tests.Chris Wilson2012-11-08
|
* Fix incorrect logging of timer assignment, and format expiry time as a human ↵Chris Wilson2012-11-07
| | | | time.
* Refactor and improve timer trace logging, fix subsecond formatting error.Chris Wilson2012-11-07
|
* BOX_FORMAT_MICROSECONDS doesn't make sense unless the digits to the rightChris Wilson2012-11-07
| | | | | of the decimal point are padded properly.
* Log the number of nanoseconds left to sleep, otherwise the log messagesChris Wilson2012-11-07
| | | | | don't make sense.
* Convert FORMAT_MICROSECONDS into a global utility macro.Chris Wilson2012-11-06
|
* Add helper methods to get read-only access to the buffer, and its size,Chris Wilson2012-10-22
| | | | | wrapped by a MemBlockStream.
* Add a comment in header to indicate that StreamableMemBlock does not Chris Wilson2012-10-22
| | | | | | read/write raw memory blocks, but blocks with a header indicating their size, which is not always what we want.
* Add helper method to read a value that might not be present in an ArchiveChris Wilson2012-10-22
| | | | | (end of Archive) to avoid duplicating this code many times.
* Allow UnixUser to be created with a std::string for C++ style.Chris Wilson2012-06-29
|
* Fix bug that caused sending a ZeroStream to end early, breaking protocol.Chris Wilson2012-04-28
|
* Allow hiding specific exceptions to keep test output cleaner.Chris Wilson2012-04-28
|
* Add experimental "TCP Nice" mode, disabled by default.Chris Wilson2012-02-12
|
* Make box_time_t signed so that we can subtract them without getting silly ↵Chris Wilson2012-02-02
| | | | answers.
* Allow overriding Logging::Guard to dump stack backtraces as well.Chris Wilson2012-01-23
|
* Log exceptions with backtrace even if suppressed when log level is ↵Chris Wilson2012-01-23
| | | | | | | Log::EVERYTHING also for exceptions with messages.
* Log messages on failure to read, write, stat, seek and close files, with the ↵Chris Wilson2012-01-22
| | | | filename.
* Remove unnecessary GetNativeErrorMessage(), add BOX_LOG_SOCKET_ERROR macro.Chris Wilson2012-01-22
|
* File modification time helper functions don't need to modify their ↵Chris Wilson2012-01-22
| | | | arguments, so make them const.
* Allow getting the message out of a BoxException.Chris Wilson2012-01-22
|
* Allow log level "everything" to log exceptions even if suppressed.Chris Wilson2012-01-22
|
* Log disabling of exception logging to help understand test output.Chris Wilson2012-01-22
| | | | | Allow std::ostringstream formatting in expected/actual output comparison.
* Fix regex case issues on Windows (\S converted to \s for example). Ensure thatChris Wilson2011-12-03
| | | | | filename comparison is always case insensitive on Windows, by convention.
* Avoid recompiling everything on MSVC when BoxVersion.h changes.Chris Wilson2011-10-25
|
* Fix illegal use of Logging::Add and Logging::Remove while iterating over loggersChris Wilson2011-10-11
|
* Log fatal exceptions in main helper using BOX_FATAL instead of printf, toChris Wilson2011-10-09
| | | | | ensure they get logged in all the right places.
* Recent Cygwin versions of MinGW now define O_BINARY as well, also inChris Wilson2011-10-08
| | | | | | fcntl.h, so include it if we can find it, and only define O_BINARY if it turns out to be missing.
* Recent Cygwin versions of MinGW now define O_BINARY as well, also inChris Wilson2011-10-08
| | | | | | fcntl.h, so include it if we can find it, and only define O_BINARY if it turns out to be missing.
* Fix potential conflict between WINVERs in Timers.Chris Wilson2011-08-28
|
* Log failure to convert log string to console encoding on Windows.Chris Wilson2011-08-27
|
* Fix line endings.Chris Wilson2011-05-24
|
* Another virtual destructor, this time for IOStreamGetLine.Chris Wilson2011-05-04
|
* Add virtual destructors to GetLine and FdGetLine to silence warnings.Chris Wilson2011-05-04
|
* Allow stream formatting in "line" parameter of TEST_LINE macro.Chris Wilson2011-04-23
|
* Move S3Simulator into its own class, like S3Client, for reuse elsewhere.Chris Wilson2011-04-22
|
* Refactor GetLines to share common code, fix whitespace removal at end of line.Chris Wilson2011-04-22
|
* Include <process.h> to get a definition for getpid() from the Windows CRT,Chris Wilson2011-04-20
| | | | | to replace the emulated one in emu.cpp.
* Add some macros for Windows specific error logging.Chris Wilson2011-03-27
|
* Fix off-by-one errors caught by MSVC.Chris Wilson2011-03-27
|
* Avoid conflicting declarations of O_BINARY on MSVC compiles.Chris Wilson2011-03-26
|
* Hopefully fix divide by zero error on rate limiting stream.Chris Wilson2011-02-26
|
* Move TemporaryDirectory.h into Utils.h and Utils.cpp to avoid duplicateChris Wilson2011-01-21
| | | | | definitions of inline functions.
* Add an implementation of a stream wrapper that limits reading rate, toChris Wilson2011-01-12
| | | | | control bandwidth usage.