| 397 | #endif |
| 398 | |
| 399 | uint64 Asset::GetMemoryUsage() const |
| 400 | { |
| 401 | uint64 result = sizeof(Asset); |
| 402 | Locker.Lock(); |
| 403 | if (Platform::AtomicRead(&_loadingTask)) |
| 404 | result += sizeof(ContentLoadTask); |
| 405 | result += (OnLoaded.Capacity() + OnReloading.Capacity() + OnUnloaded.Capacity()) * sizeof(EventType::FunctionType); |
| 406 | result += _references.Capacity() * sizeof(HashSet<IAssetReference*>::Bucket); |
| 407 | Locker.Unlock(); |
| 408 | return result; |
| 409 | } |
| 410 | |
| 411 | void Asset::Reload() |
| 412 | { |
no test coverage detected