diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llassetstorage.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llassetstorage.h b/linden/indra/llmessage/llassetstorage.h index b7da197..739242a 100644 --- a/linden/indra/llmessage/llassetstorage.h +++ b/linden/indra/llmessage/llassetstorage.h | |||
@@ -420,6 +420,32 @@ private: | |||
420 | LLXferManager *xfer, | 420 | LLXferManager *xfer, |
421 | LLVFS *vfs, | 421 | LLVFS *vfs, |
422 | const LLHost &upstream_host); | 422 | const LLHost &upstream_host); |
423 | |||
424 | protected: | ||
425 | enum EMetricResult | ||
426 | { | ||
427 | // Static valued enums for #dw readability - please copy this | ||
428 | // declaration to them on updates -- source in llassetstorage.h | ||
429 | MR_INVALID = -1, // Makes no sense | ||
430 | MR_OKAY = 0, // Success - no metric normally | ||
431 | MR_ZERO_SIZE = 1, // Zero size asset | ||
432 | MR_BAD_FUNCTION = 2, // Tried to use a virtual base (PROGRAMMER ERROR) | ||
433 | MR_FILE_NONEXIST = 3, // Old format store call - source file does not exist | ||
434 | MR_NO_FILENAME = 4, // Old format store call - source filename is NULL/0-length | ||
435 | MR_NO_UPSTREAM = 5, // Upstream provider is missing | ||
436 | MR_VFS_CORRUPTION = 6 // VFS is corrupt - too-large or mismatched stated/returned sizes | ||
437 | }; | ||
438 | |||
439 | static class LLMetrics *metric_recipient; | ||
440 | |||
441 | static void reportMetric( const LLUUID& asset_id, const LLAssetType::EType asset_type, const char *filename, | ||
442 | const LLUUID& agent_id, S32 asset_size, EMetricResult result, | ||
443 | const char *file, const S32 line, const char *message ); | ||
444 | public: | ||
445 | static void setMetricRecipient( LLMetrics *recip ) | ||
446 | { | ||
447 | metric_recipient = recip; | ||
448 | } | ||
423 | }; | 449 | }; |
424 | 450 | ||
425 | //////////////////////////////////////////////////////////////////////// | 451 | //////////////////////////////////////////////////////////////////////// |