Programming - Principles and Practice Using C++
http://stroustrup.com/programming.htmlA Tour of C++
http://stroustrup.com/Tour.htmlThe C++ Standard Library: A Tutorial and Reference
http://amzn.to/2CtyaVEC++ Templates: The Complete Guide
http://amzn.to/2zT8b7m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"github": { | |
"token": "YOUR_GITHUB_TOKEN" | |
}, | |
"project": { | |
"user": "BenchLabs", | |
"teamLabel": "team_platform", | |
"sprintKeywords": "Platform Sprint", | |
"sprintLabelColor": "fbca04", | |
"teamRepos": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The merge method takes in the two subarrays and creates a output array | |
def merge(left, right): | |
result = [] | |
i , j = 0 , 0 | |
while i < len (left) and j < len (right): # iterate through both arrays and arrange the elements in sorted order | |
if left[i] <= right [j]: | |
result.append(left[i]) | |
i+=1 | |
else: | |
result.append(right[j]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --name dogstatsd -u 0 -h `hostname` -p 8125:8125/udp -e API_KEY=$API_KEY datadog/docker-dd-agent:latest-dogstatsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paste -d "\t" - - - - < filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --name dogstatsd -h `hostname` -p 8125:8125/udp -e API_KEY=$API_KEY datadog/docker-dogstatsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/jvm-profiling-tools/async-profiler/releases/download/v2.7/async-profiler-2.7-linux-x64.tar.gz | |
tar -zxvf async-profiler-2.7-linux-x64.tar.gz | |
cd async-profiler-2.7-linux-x64 | |
./profiler.sh -d 60 -f /tmp/flamegraph.html 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.flink.contrib.streaming.state.{ConfigurableRocksDBOptionsFactory, RocksDBOptionsFactory} | |
import org.rocksdb.DBOptions | |
import org.rocksdb.ColumnFamilyOptions | |
import org.rocksdb.BlockBasedTableConfig | |
import org.apache.flink.configuration.ReadableConfig | |
import java.util | |
class NoBlockCacheRocksDbOptionsFactory extends ConfigurableRocksDBOptionsFactory { | |
override def createDBOptions(currentOptions: DBOptions, handlesToClose: util.Collection[AutoCloseable]): DBOptions = { | |
currentOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.flink.contrib.streaming.state.{ConfigurableRocksDBOptionsFactory, RocksDBOptionsFactory} | |
import org.rocksdb.DBOptions | |
import org.rocksdb.ColumnFamilyOptions | |
import org.rocksdb.BlockBasedTableConfig | |
import org.apache.flink.configuration.ReadableConfig | |
import java.util | |
class NoBlockCacheRocksDbOptionsFactory extends ConfigurableRocksDBOptionsFactory { | |
override def createDBOptions(currentOptions: DBOptions, handlesToClose: util.Collection[AutoCloseable]): DBOptions = { | |
currentOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Total: 6743323999 B | |
5110634379 75.8% 75.8% 5110634379 75.8% rocksdb::UncompressBlockContentsForCompressionType | |
1438188896 21.3% 97.1% 1438188896 21.3% os::malloc@bf9490 | |
134350858 2.0% 99.1% 134350858 2.0% rocksdb::Arena::AllocateNewBlock | |
22944600 0.3% 99.4% 27545943 0.4% rocksdb::LRUCacheShard::Insert | |
22551264 0.3% 99.8% 5133185644 76.1% rocksdb::BlockBasedTable::PartitionedIndexIteratorState::NewSecondaryIterator | |
4732478 0.1% 99.9% 4732478 0.1% rocksdb::LRUHandleTable::Resize | |
2845444 0.0% 99.9% 2845444 0.0% std::string::_Rep::_S_create | |
1333241 0.0% 99.9% 1333241 0.0% inflate | |
1310779 0.0% 99.9% 1310779 0.0% rocksdb::WritableFileWriter::Append |